Created
June 20, 2014 05:23
-
-
Save goldsky/5257da19d4ae186c72c9 to your computer and use it in GitHub Desktop.
Wrapper chunk for step-1 field of dynamic field for FormIt
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
[[+dynfield.items]] | |
<script> | |
function addRow(button) { | |
var newRow = '[[$step1DynamicFields.item:chunkToJsProperty]]' + " \n"; | |
$(newRow).insertBefore($(button)); | |
} | |
function removeRow(button) { | |
$(button).parent().parent().remove(); | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment