I have a form and two buttons. I want to change onsubmit attributeforms using these buttons using jQuery.
I tried
$("#form").attr("onsubmit","newValue")
but this does not change the onsubmit attribute and does not add the attribute to the form.
Please, help.
source
share