I have a simple html form:
<form action="test" method="post" id="myForm">
<input type="text" name="myTextField">
<input type="text" name="myTextField2">
<input type="text" name="dontSubmitThisField">
</form>
And I need to submit it with JavaScript, but I want to exclude the dontSubmitThisField
field from the request. Is there a way of doing that without Ajax?
disabled
html attribute will do what you want – Arianaariane