forms - Getting input text value with jQuery send the input name instead of the actual value -
i need advice,
i have simple html input type text field:
<p><input id="mrmid" type="text" name="mrmid" size="30" /></p>
i trying values using submit function, this:
$("#myform").submit(function(){ var mrmid = $("#mrmid").val(); alert("mrmid"); });
instead of submitted value, lets submit "123", alert alertss "mrmid" (the input name).
why happening?
is way go, or should utilize serializearray() method? know works , saw documented on stack.
ty
i think have utilize alert(mrmid);
instead of alert("mrmid");
jquery forms
No comments:
Post a Comment