I have the following code for assigning onclick in the <tr>
:
$("#tblDepartment tr").click(function() { alert($(this).eq(1).attr("field")); });
My HTML code is here:
<tr class="trEven" id="trDepartment4"> <td field="ID" style="display: none;" width="50px">4</td> <td field="DEPT_NM" width="100%">BID DEPARTMENT</td> </tr>
What I would like to do is tget first child innerHTML. How can i do this?
source share