I want to add an input into form using JQuery, and then submit the form with pure HTML without using javascript.
<form method="post" action="" id="myform" >
<input type="hidden" name="example" value="done" />
<input type="submit" value="try" />
</form>
Here my JQuery line that add new input:
$('#myform').append("<input name="example2" value="done" type='hidden'/>");
My issue is when i submit the form, i can't get example2
input value ! help me to figure it out.