When the user updates the form value it is not being found by $(‘form#myform’).html()
Lets say I have:
<form id="myform">
<input type="text name="mytext" id="mytext" value="1" />
</form>
And the user changes 1 into 2.
Then
$(‘form#myform’).html() returns still; how can I make it return value=”2″? I have a dynamic number of form fields so doing $(‘#mytext).attr(‘value’,$(‘#mytext).val()); wouldn’t be a solution I think.
Hope someone has some advice for me 🙂 Thanks!
Scott
You can add a event listener for onchange to all your fields: