What I want is to transfer data value from ID one to ID two Data should be in the form of a submit button
javascript
<blockquote contenteditable="true" id = "1"><p></p> </blockquote>
<blockquote contenteditable="true" id = "2"><p></p> </blockquote>
<button type="Submit" >Submit</button>
2
Answers
you can use the innerHTML property for quick solution
Here’s an example to transfer the content from the first blockquote with the id "1" to the second blockquote with the id "2" when the submit button is clicked.
transferData() method is triggered when submit button is clicked and this method retrieves the content from 1st id and transfers it to 2nd id.
Also replace the button type with "button" to prevent it from submitting a form, as we’re handling the functionality with JavaScript.