There are two submit (submit1, submit2) in a form, I want to identify which submit was pressed when submitting, (determined in onsubmit);
Please enlighten me, thank you!
2 forms such as
form1 and form2 can write events in onsubmit
example
<form id = form1 onsubmit = "alert ('form1 submit')">
<input id = "b1" type = submit value = "button1">
</ form>
<form id = form2 onsubmit = "alert ('form2 submit')">
<input id = "b2" type = submit value = "button2">
</ form>