copy input value to div
by magizter
HTML
<input id="inputItem" type="hidden" value="22" />
<div id="toDiv"></div>
JavaScript
$('#toDiv').html($('#inputItem').val() );
by magizter
<input id="inputItem" type="hidden" value="22" />
<div id="toDiv"></div>
$('#toDiv').html($('#inputItem').val() );