jQuery Selection Child of UL. Looking for a better method
- by john doe
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!!