JSFiddle - React, Tailwind, and code Playground
HTML
<p>Name:
<input type="text" id="test" value="Mickey Mouse">
</p>
<button>Show Value</button>
JavaScript
// jquery get content val() method
$("button").click(function () {
alert("Value: " + $("#test").val());
});