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!!
UPDATE 1:
Please note that ids are not unique!
Here is what I came up with:
$(".block").children("ul").find("#stocknumber")
or even: