I have a form with several inputs in it
in a specific time when a checkbox gets checked, I don't want one of the inputs to be submitted and others get to submit.
how can I prevent one of the inputs from submission?
I have a form with several inputs in it
in a specific time when a checkbox gets checked, I don't want one of the inputs to be submitted and others get to submit.
how can I prevent one of the inputs from submission?
Only form elements with a name attribute will have their values passed when submitting a form. Just remove the name attribute of your input. for more info look at this article in W3schools