我有一个简短的问题。循环多个div和这些div中的input/textarea的最有效方法。jQuery Loop问题
例如,我有以下HTML
<div class="formatInput">
<h4>Section Header</h4>
<input type="text" class="formatSectionHeader" width="100%"/>
<h4>Section Content</h4>
<textarea class="formatSectionContent"></textarea>
<p style="float:right;"><span class="removeFormatInput">Remove Section</span></p>
</div>
我做了一个按钮,将允许用户如果需要添加更多.formatInput的div。
在它结束时我有一个刷新按钮,我想通过每个div循环并按顺序收集输入和textarea控件的值。