I'm wondering how can I get the value of an input
in a specific table cell using javascript?
<td><input type="text"/></td>
I assume getting the innerHTML
of a specific cell is quite simple, for example:
var x = document.getElementById("tabela").rows[2].cells[3].innerHTML
but this gives me just the input
without it's value
. Adding .value
to the end of the line doesn't work. I would appreciate your help!
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…