How to submit form and change value with JavaScript function?

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default How to submit form and change value with JavaScript function?

    I have a problem.
    I would like to change a value from textbox with JavaScript before I submit
    the form (submit updated value). Can anyone please help me?

    thank you, Jure


    Jurij P Guest

  2. Similar Questions and Discussions

    1. How do i programmatic-ally change the Mouse Up-triggered JavaScript Action of a Submit button in a form contained in hundreds of PDFs?
      Hi Guys! How do i programmatically change the Mouse Up-triggered JavaScript Action of a Submit button in a form contained in hundreds of PDFs? In...
    2. Javascript submit() function
      :disgust; Ok, I've been working on this all day and I hoping someone can help me. The alerts work correctly, but the form never submits. I've...
    3. List Menu, Javascript and Form Submit
      I am using a list menu to perform two tasks. First, it toggles a show/hide area based on the selected value using javascript. The I use an insert...
    4. Dynamic function or javascript to change checkbox tounchecked?
      I am wondering if there is a ColdFusion function or maybe some simple javascript that can help me. I want to dynamically change a checkbox from...
    5. Change value with JavaScript before submit
      document.forms.TextBoxName.value = "some value"; HTH, Kevin Spencer Microsoft FrontPage MVP Internet Developer http://www.takempis.com Some...
  3. #2

    Default Re: How to submit form and change value with JavaScript function?

    Try something like.

    On the client....
    <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>

    On the server....
    Use the event on the button, to change the property of the text box.


    "Jurij P" <jurij.petruna@guest.arnes.si> wrote in message
    news:eKVjTPcPDHA.2248@TK2MSFTNGP11.phx.gbl...
    > I have a problem.
    > I would like to change a value from textbox with JavaScript before I
    submit
    > the form (submit updated value). Can anyone please help me?
    >
    > thank you, Jure
    >
    >

    Paul Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139