get an input field value from the last row in a table using jquery

$('table#table1 tr:last input[name=code]').val();

Comments