Created
March 11, 2012 22:19
-
-
Save slickplaid/2018439 to your computer and use it in GitHub Desktop.
Only submit buttons
This file contains hidden or 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
| $(document).delegate(".field-group-head input[name='add'][type='submit'], input[name$='[remove]'][type='submit']", "click", function addSubFormItem(e) { | |
| var form = $(this).closest("form") | |
| , submit = $(this); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment