jQuery Tutorial


jQuery Example


jQuery References


jQuery HTML detach() Method Reference


  All jQuery with HTML Method References


Uses

jQuery detach() method Remove the selected elements.


Syntax

$(selector).detach()

jQuery detach() Method Example

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

  All jQuery with HTML Method References