I would like to know if there is a way to prevent an input to be submitted.
In fact, I want to disable an hidden field in order to not received the value in the params when I will submit the form.
I know the $("element").attr("disabled", "disabled") but the value is sent and I don’t want that.
If you don’t want a form element to be sent, remove its
nameattribute:If you want the element to be completely removed, use
.remove():