jQuery
开发者_运维技巧$("#myID").each(function() {
$(this).dosomething;
});
HTML:
<div id="myID">
<div class="myClass">content</div>
</div>
How do I access myClass from the function? this>myClass
?
$(this).children(".myClass")
jQuery
开发者_运维技巧$("#myID").each(function() {
$(this).dosomething;
});
HTML:
<div id="myID">
<div class="myClass">content</div>
</div>
How do I access myClass from the function? this>myClass
?
$(this).children(".myClass")
精彩评论