I have table like this:
<tr id="t0" >
  <td id="0"></td>
  <td ><input name="0" style="width:20px;" type="text" />-
  <input name="1" style="width:20px;" type="text" />
  <button onclick="write(0)" >+</button></td>
</tr>
<tr id="t1" >
  <td id="1"></td>
  <td ><input name="1" style="width:20px;" type="text" />-
  <input name="2" style="width:20px;" type="text" />
  <button onclick="write(1)" >+</button></td>
</tr>
I need to get all values from input elements inside specific tr element. I tried following but nothing:
var t = $('table#tbl tr#'+id).find('input').val();
alert(t);
or
var t = $('tr'+id+':has(input)').val();
  alert(t);
but nothing... Can someone point me to the correct answer?
 
    