I need some advice,
I have a simple html input type text field:
<p><input id="mrmid" type="text" name="mrmid" size="30" /></p>
I am trying to get his values using a submit function, like this:
$("#myform").submit(function(){
var mrmid = $("#mrmid").val();
alert("mrmid");
});
Instead of the submitted value, lets say I submit "123", the alert alertss "mrmid" (the input name).
Why is this happening?
Is this the way to go, or should I use the serializeArray() method? Which I know it works and I saw it documented on stack.
Ty