How to duplicating (copy) value from one HTML form to another using JavaScript

1 Answer

0 votes
<form>
   <input type="text" name="post" id="post" onchange="document.getElementById('post-2').value = document.getElementById('post').value;">
</form>

<form>
   <input type="text" name="post-2" id="post2">
</form>

 



answered Aug 3, 2020 by avibootz
...