JSFiddle - React, Tailwind, and code Playground
by Ebhor.com The Free Tutorials
HTML
<h1>Jquery html() to get value</h1>
<div class="test">
<h1>Too Good</h1
<p> html() get the html content <b>with specified selector.</b></p>
</div>
<input type="submit" value="get Html" id="getHtml" />
JavaScript
$(document).ready(function () {
$(document).on('click', '#getHtml', function (event) {
var content=$(".test").html();
alert(content);
});
});