jQuery Tutorial


jQuery Example


jQuery References


jQuery HTML html() Method Reference


  All jQuery with HTML Method References


Uses

jQuery html() method Sets or returns the contains of selected elements.


Syntax

$(selector).html()

jQuery html() Method Example

<script type="text/javascript"> 
$(document).ready(function(){
  $("button").click(function(){
    $("p").html("Congratulation, Way2Tutorial");
  });
});
</script>
Online Try This Code Your Self....   »

  All jQuery with HTML Method References