View Single Post
Old 10-08-2012, 03:44 AM   PM User | #3
johnsmith153
New Coder

 
Join Date: Mar 2012
Posts: 81
Thanks: 7
Thanked 0 Times in 0 Posts
johnsmith153 is infamous around these parts
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.
johnsmith153 is offline   Reply With Quote