
Above you can see my DOM , how do I get to the input from the a tag as shown below. Note that the portion is repeated multiple times as it is derived from a repeater control.
I did post a similar question earlier , which I have flagged for deletion as the question seems to be confusing.
The target is a hidden field, and assume that I only know that the ID is suffixed with “AID”. So how can i select it ?
here is what i have tried , but i know its wrong though
var AnsID = $('*:hidden:first[id*="AID"]').prev("div");
any help appreciated guys. thanks!
Where
thisis theatag.As you can see, I select the previous
divelement, then I access the first hidden input child that containsaidin theidattribute.This should work.