JSFiddle - React, Tailwind, and code Playground
HTML
<div>
<div>
<label>Div Name</label>
<input id='name' />
<div id='results'></div>
</div>
<button id='submit'>Submit</button>
</div>
</div>
CSS
.box {
background-color:blue;
color:white;
width:100px;
height:100px;
padding:10px;
margin:10px;
display:inline-block
}
JavaScript
$('#submit').click(function () {
var name = $('#name').val();
var content = $('#content').val();
$('#results').html(name);
functions(name, content);
});