I want to convert the HTML in the example to:
<div class="main">
</div>
<div>1</div>
<div>2</div>
<div>3</div>
... using this:
Code:
$(".main > div").each(function() {
...to pass through each div.
It's a small part of a larger script. I just pulled this out so as not to complicate things.