Bad Form Submit vs Not Bad Form Submit
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--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