【www.gdgbn.com--jquery】

下面的html


  hello
  goodbye
we can target any element for removal:

$(".hello").empty();this will result in a dom structure with the hello text deleted:


 
  goodbye


看个实例




 
  <script src="http://code.jquery.com/jquery-latest.min.js"></script>


 


  hello, person 网页特效:;">and person


<script>
  $("button").click(function () {
    $("p").empty();
  });
</script>


本文来源:http://www.gdgbn.com/wangyezhizuo/26890/