I’ve got some HTML that looks like this.
<li class="t-item t-first">
<div class="t-top">
<span class="t-icon t-plus"></span>
<span class="t-in">Offshore</span>
</div>
<input type="hidden" value="41393" name="itemValue" class="t-input">
</li>
The HTML is a single item from a treeview created by Telerik. The real data here is that “Offshore” has an id of “41393”.
From the Telerik code I get the span-element with class”t-in”, but I’m unable to get the ID-value from it. How can I use jQuery to find the value of the hidden input type?
how about this:
this sorta works if you only have one t-in element, otherwise, you have have to replace the first line in my code with how you select the element yourself.
You need to provide more info, but this is the best i could do with what you gave