javascript - When you submit a form, does the button that was clicked get posted also? -
when submit form, button clicked posted also?
yes does. long set both name
, value
:
<input name="submit" value="submit" type="submit"/>
in fact can have multiple submit buttons on same page , can detect 1 clicked on checking pair.
Comments
Post a Comment