<div id="selected"> <ul> <li>29</li> <li>16</li> <li>5</li> <li>8</li> <li>10</li> <li>7</li> </ul> </div>
I want to count the total number of <li>
elements in <div id="selected"></div>
.(我想计算<div id="selected"></div>
中<li>
元素的总数。)
How is that possible using jQuery's .children([selector])
?(怎么可能使用jQuery的.children([selector])
?)
ask by gautamlakum translate from so
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…