JSFiddle - React, Tailwind, and code Playground
HTML
<body>
<a href="#">Test</a>
</body>
JavaScript
$("a").click(function(event) {
var form_content = "<form><input id=\"name\" value=\"Test value\"/></form>";
var test = $('<div />').html(form_content).find('#name').val('New test value').parent();
alert(test.find('#name').val());
alert(test.html());
return false;
});