Demo :
Click the button to copy the content of Field1 to Field2.
Field1:
Field2:
Field1:
Field2:
Sample Code :
Click the button below to copy the content of Field1 to Field2.
<br />
Field1: <input type="text" id="field1" value="Hello World!">
Field2: <input type="text" id="field2">
<button onclick="document.getElementById('field2').value=
document.getElementById('field1').value">Copy Text</button>
<br />
Field1: <input type="text" id="field1" value="Hello World!">
Field2: <input type="text" id="field2">
<button onclick="document.getElementById('field2').value=
document.getElementById('field1').value">Copy Text</button>
No comments:
Post a Comment