add html from a variable using jquery code example
Example: use jquery variable in html
<script>
$(document).ready(function(){
var inputvalue = "field 1";
$('#id1').val(inputvalue);
});
</script>
<html>
<body>
<div><input id="id1" value=""></div>
</body>
</html>