Created
May 27, 2011 04:59
-
-
Save farinspace/994668 to your computer and use it in GitHub Desktop.
Repeating fields Setup
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
<div class="container"> | |
<div class="collection"> | |
<div class="template" style="display:none;"> | |
<input type="text" name="questions[%][question]" value="qq"/> | |
<input type="text" name="questions[%][type]" value="qt"/> | |
<div class="container"> | |
<div class="collection"> | |
<div class="template" style="display:none;"> | |
<input type="text" name="questions[%][options][@]" value="o"/> | |
</div> | |
<!-- some sort of loop to create existing items --> | |
<div class="item"></div> | |
</div> | |
<div><a href="#" class="oadd">Add Option</a></div> | |
</div> | |
</div> | |
<!-- some sort of loop to create existing items --> | |
<div class="item"></div> | |
</div> | |
<div><a href="#" class="qadd">Add Question</a></div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment