I have an <input type="text" value="0.00" id="prdtotal"/> inside a <td> in a table.
I want to use Javascript to compute a value and assign it to the textbox. How can I do it?
I tried using document.getElementById("prdtotal").value="1.00"; but it doesnt work. Thanks for any help!
document.getElementByIdwill find any element by id no matter how deeply nested inside other elements it is.