Created
June 21, 2014 11:26
-
-
Save goldsky/ca6d82dac106f53fd9ed to your computer and use it in GitHub Desktop.
Wrapper chunk for step-2 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 = '[[$step2DynamicFields.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