The example in this article describes how jquery loops through subnodes and gets values. Share to everyone for your reference, specific as follows:
HTML code section:
<div class= "Left_tree_ad_btn_container" >
<ul> <li class= "TREE_AD_BTN_BG" >
</li>
</ul>
<ul>
<li class=" Tree_ AD_BTN_BG have_bg "></li>
</ul>
< ul>
<li class= "TREE_AD_BTN_BG" ></li>
</ul>
</div>
JS Code section:
var Arrul = JQuery (". Left_tree_ad_btn_container > ul");
Jquery.each (Arrul, function () {
alert (jQuery). FIND ("img"). attr ("src"));
Alert (JQuery (this). Find ("Li"). attr ("class"));
More interested readers of jquery-related content can view this site: "jquery traversal algorithm and tips summary", "jquery table (table) Operation Tips Summary", "jquery drag-and-drop effects and tips summary", "JQuery Extended Skills Summary", " jquery Common Classic Effects Summary "jquery animation and special effects usage Summary", "jquery selector usage Summary" and "jquery common Plug-ins and Usage summary"
I hope this article will help you with the jquery program design.