jQuery Selection Child of UL. Looking for a better method

Posted by john doe on Stack Overflow See other posts from Stack Overflow or by john doe
Published on 2010-06-01T18:01:35Z Indexed on 2010/06/01 18:03 UTC
Read the original article Hit count: 116

Filed under:

I have a div element which contains UL and UL contains the LI items. One of the LI item has an ID of stocknumber. I need to select that li.

Here is my code which works fine I am just looking for a better implementation.

$(".block").children("ul").children("#stocknumber") // gets me the li and it works!! 

© Stack Overflow or respective owner

Related posts about jQuery