Results 1 to 3 of 3

Thread: Javascript function to change the value before submit button

  1. #1
    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!

  2. #2
    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>

  3. #3
    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 ...

Similar Threads

  1. Replies: 1
    Last Post: 10-02-2012, 04:34 PM
  2. How to send mail on submit button?
    By ArunJ in forum Software Development
    Replies: 6
    Last Post: 20-04-2010, 09:46 PM
  3. How to Submit a Form Using JavaScript?
    By Damien25 in forum Software Development
    Replies: 4
    Last Post: 07-02-2010, 07:05 AM
  4. How to submit form without "Submit Button"?
    By AK_Chopra in forum Software Development
    Replies: 3
    Last Post: 10-09-2009, 08:44 AM
  5. Problem Submit Form in Firefox [javascript]
    By Swetlano in forum Software Development
    Replies: 0
    Last Post: 09-02-2009, 11:07 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,750,577,637.83410 seconds with 16 queries