Find element using jQuery
Posted
by Frode Lillerud
on Stack Overflow
See other posts from Stack Overflow
or by Frode Lillerud
Published on 2010-05-14T15:50:37Z
Indexed on
2010/05/14
15:54 UTC
Read the original article
Hit count: 263
jQuery
Hi, 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?
© Stack Overflow or respective owner