JSFiddle - React, Tailwind, and code Playground
HTML
<textarea id="html-code" cols="60" rows="15"></textarea>
<button id="html-go">Go</button>
JavaScript
$('#html-go').click(function (e) {
e.preventDefault();
var html_code = $('#html-code').val(),
obj = $('<div/>').html(html_code).contents();
console.log(obj.find('form').attr("action"));
alert(obj.find('form').attr("action"));
});