JSFiddle - React, Tailwind, and code Playground
by ason5861_cs
HTML
<div id="container">
<form>
Name:<br/>
<input type="text" name="F_Name" size=60>
<br/><br/>
Street Address:<br/>
<input type="text" name="F_Address" size=30>
City:
<input type="text" name="F_City" size=12>
State:
<input type="text" name="F_State" size=2>
Zip Code:
<input type="text" name="F_ZipCode" size=5>
<br/><br/>
<input type="reset" value="Reset">
<br/><br/>
</form>
</div>
<input type="button" value="Print Form" onclick="PrintElem('#container')" />
<div id="printoutput"></div>
JavaScript
function PrintElem(elem)
{
$('form input[type=text]').each(function() {
$(this).attr('value', $(this).val());
});
$('#printoutput').html($(elem).html());
}