<input type="text" name="tx1" id="tx1" value="0"/>
var inputText = document.getElementById('tx1') ; inputText.value = 1 ;