I want to rename a field name using jquery .
This field is situated at the last but one <tr> inside myTable.
I use the following syntax to rename field name ...but this does not work
$('#myTable tr:eq(-2) > input[name="id0"]').attr('name', 'id1');
whats wrong ? how do I correct it ?