JSFiddle - React, Tailwind, and code Playground
HTML
<html>
<head>
<title>test</title>
</head>
<body>
<div id="res"></div>
<div id="res-second"></div>
</body>
</html>
JavaScript
var html = '<form><input type="text" value="input-value" name="inp"><input type="password" name="pass" value="mypass"><input type="submit" value="ok"></form>';
$(document).ready(function(){
var elem = $(html);
$('#res').text(elem.serialize());
$('#res-second').text(elem.find('input[name="pass"]').val());
});