How can I select a input value inside a cell?
- <table id='mytalbe'>
<tr>
<td><input class='link' type ='text'></td>
- <td><input class='description' type ='text'></td>
- </tr>
I have a undefinited number of row.
- $('#mytable tbody tr').each(function(){
-
- var link = $(this).find("td").find("input").val(); //first test
- var description = $(this).closest("tr").find('description').text(); //second test
-
- });
This code don't working.
Any suggestion?