I am trying to get a text box to show a number and then add it to another number,
<html>
<body>
Field1: <input type="int" id="field1" value="1" />
<br />
Field2: <input type="int" id="field2" />
<br /><br />
Click the button to add the content of Field1 to Field2.
<br />
<button onclick=" "field2.text" = (field2.text + field1.text).value">Copy Text</button>
</body>
</html>
anyone know how to make this work please ?