jQuery Tutorial


jQuery Example


jQuery References


jQuery HTML empty() Method Reference


  All jQuery with HTML Method References


Uses

jQuery empty() method Removes all child elements from selected elements.


Syntax

$(selector).empty()

jQuery empty() Method Example

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

  All jQuery with HTML Method References