i have html like this, i want to get <tr id=\"Box<%# Eval(\"Id\") %>\"when i click on 5 tag , using jquery
please note this is my ItemTemplate, so there are many items with same html,
<tr id=\"Box<%# Eval(\"Id\") %>\" style=\"height: 30px;\">
<td>
<div class=\"LanguageName\"><%# Eval(\"LanguageName\")%></div>
</td>
<td text-align: center;\">
<a href=\"javascript:fun1(1)\"></a>
<a href=\"javascript:fun1(2)\"></a>
<a href=\"javascript:fun1(3)\"></a>
<a href=\"javascript:fun1(4)\"></a>
<a href=\"javascript:fun1(5)\"></a>
</td>
please have a look here for 2 items : http://jsfiddle.net/bThbL/
so when i click on any <a> from td , i wan to get parent tr id





Rating:
The post jquery – How to find Id of <tr> element from inside <a> element? appeared first on Javascript ASK.
via Javascript ASK http://javascriptask.phpfogapp.com/jquery-how-to-find-id-of-tr-element-from-inside-a-element.html
No comments:
Post a Comment