We would like to know how to set text vs set html.
<!DOCTYPE html>
<html>
<head>
<script type='text/javascript'
src='http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js'></script>
<script type='text/javascript'>
$(window).load(function(){<!-- w w w . ja v a 2 s . c om-->
$('#fullname').html('value');
$('#fullname1').html('<h1>value</h1>');
$('#fullname2').text('<h1>value</h1>');
});
</script>
</head>
<body>
<span id="fullname">Test</span>
<br />
<span id="fullname1">Test</span>
<br />
<span id="fullname2">Test</span>
<br />
</body>
</html>
The code above is rendered as follows: