When clicking a link, getting value from it's parent's child

When clicking a link, getting value from it's parent's child

I have the following code
<tr>
<td><input name="test" type="hidden" value="1" /></td>
<td class="icon"><a href="#" class="delete"><img src="images/action_delete.png" /></a></td>
</tr>


and once the delete button is clicked, I need the value from the input.

$(".delete").live("click", function(){
var id = $(this).parent("tr").children("input").attr("value");
$(this).parent("tr").remove();
});


However, I cant seem to select the input's value.