Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 04-02-2009
Member
 
Join Date: Jun 2008
Posts: 114
Javascript function to change the value before submit button

Hi,

I want to know how can I change the value using textbox before i click the submit button?

Please help!
Reply With Quote
  #2  
Old 04-02-2009
Member
 
Join Date: Jun 2008
Posts: 97
Re: Javascript function to change the value before submit button

Try this on the form.

Code:
<form name="frmForm' action='default.asp'>
<input type="text" id='txtName'/>
<input type='button' onclick='jscript:changeTextbox();'>
</form>

<script language='JScript'>
function changeTextbox()
{
txtName.value = 'hello wolrd';
frmForm.submit;
}
</script>
Reply With Quote
  #3  
Old 04-02-2009
Member
 
Join Date: Feb 2009
Posts: 133
Re: Javascript function to change the value before submit button

PLEASE REFER THIS PAGE:
http://www.dotnetfunda.com/articles/article72.aspx

Hope this helps!
__________________
IF YOU CAN'T Convince THEM ...

CONFUSE THEM ...
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Javascript function to change the value before submit button"
Thread Thread Starter Forum Replies Last Post
How to change Play button function of Logitech R400 wireless presenter? Super-Man Hardware Peripherals 1 10-02-2012 04:34 PM
How to send mail on submit button? ArunJ Software Development 6 20-04-2010 09:46 PM
How to Submit a Form Using JavaScript? Damien25 Software Development 4 07-02-2010 07:05 AM
How to submit form without "Submit Button"? AK_Chopra Software Development 3 10-09-2009 08:44 AM
Problem Submit Form in Firefox [javascript] Swetlano Software Development 0 09-02-2009 11:07 PM


All times are GMT +5.5. The time now is 12:12 AM.