I have a HTML tag like:
<tr class="evenRow" id="5"><td align="left" noWrap="nowrap">
<input id="array_5" type="checkbox" value="on"/> </td>
<td align="left" noWrap="nowrap"> SAMPLE </td>
<td align="center" id="row_at_plant_0" noWrap="nowrap" class="data-current-value" row_index="2"> 1112</td>
<td align="left" noWrap="nowrap"> 1.0457 </td>
</tr>
I have this code to get the <td>
tag that has row_index
attribute when array_*
is checked. But it's not working in IE.
$('table#headerSelectTable input[id^="array_"]:checked').each(function() {
input = $(this).parent().parent().find('.data-current-value');
if ($(this).parent().parent().get(0).tagName == 'TR') {
rows.push(input);
}
});