Set html entity to html element with .html() method - Javascript jQuery Method and Property

Javascript examples for jQuery Method and Property:html

Description

Set html entity to html element with .html() method

Demo Code

ResultView the demo in separate window

<html>
   <head> 
      <meta name="viewport" content="width=device-width, initial-scale=1"> 
      <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> 
      <script type="text/javascript">
    $(window).load(function(){//from w  ww. j ava 2 s  .c o m
$('span').html('&quot;');
    });

      </script> 
   </head> 
   <body> 
      <span></span>  
   </body>
</html>

Related Tutorials