The following code snippet works in FF but not on IE8. Prev is returning correct element but not as an object that supports val(). Hence, I can not run .val() on it.
<input type="hidden" name="data[De][1]" value="1" id="De1" />
<td class="dr_name">document1</td>
<td class="remove_dr" colspan="2" align="left">
<a href="javascript:void(0)">Remove</a></td>
<script>
$(".remove_dr").live('click', function(e) {
e.preventDefault();
var value = $(this).prev().prev().val();
alert(value);
}
</script>
Any help or a better piece of code is appreciated.