I have a quick question re. the most efficient way to loop through multiple divs and the input /textarea's in those divs.
For example, I have the following 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>
I made a button that will allow the user to add more .formatInput divs if needed.
At the end of it I have a refresh button that I want to loop through each div and gather the values of the input and textarea controls in order.