JSFiddle - React, Tailwind, and code Playground
HTML
<input type='text' id='theInput' value='Write here' />
<input type='button' onClick='changeInnerHTML();' value='See what you wrote with innerHTML'/>
<input type='button' onClick='changeHTML();' value='See what you wrote with jQuery.html'/>
<div id="plainJS"></div>
<div id="withjQuery"></div>
JavaScript
function changeHTML() {
$("#withjQuery").html($("#theInput").val());
}
function changeInnerHTML() {
var plainJSDiv=document.getElementById("plainJS");
plainJSDiv.innerHTML=document.getElementById("theInput").value;
}