I am trying to select the “hidden input” from the “a” tag. The hidden input is belonging to a “p” tag with an id of “controlBar”. here is a screenshot to explain this a bit more.

Below is the selector I have come up with, but it’s doesn’t seem to pick out the target
alert($(this).parent("div").children('input[id*="QuestID"]:hidden:first').val());
in the context of the above snipplet (this) refers to the “a” tag circled in green
help me on this guys…thanks
In reply to you comment below: