Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Bad Form Submit vs Not Bad Form Submit
<!--BAD-->
<!-- The following button tag will submit the form named "formName" TWICE -->
<button type="submit" onclick="$('#formName').submit()">Assign</button>
<!--Not Bad-->
<!-- The following button tag will submit the form named "formName" ONCE -->
<button type="button" onclick="$('#formName').submit()">Assign</button>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment