Pass arguments.callee to show function : show « jQuery « JavaScript Tutorial






<html>
  <head>
    <script type="text/javascript" src="js/jquery-1.3.2.js"></script>
    <script type="text/javascript">
        $(document).ready(function(){
            $("#showHandler").click(function () {
              $("div:eq(0)").show("fast", function () {
                $(this).next().show("fast", arguments.callee); 
              });
            });
            $("#hideHandler").click(function () {
              $("div").hide(2000);
            });
        });
    </script>
  </head>
  <body>
    <body>
      <button id="showHandler">Show</button>
      <button id="hideHandler">Hide</button>
    
      <div>A</div>
      <div>B</div>
      <div>C</div>
      <div>D</div>
    </body>
</html>








30.95.show
30.95.1.Display if hidden
30.95.2.Show fast
30.95.3.Show hidden fast
30.95.4.Show hidden slow
30.95.5.Show hidden tags
30.95.6.Show in millisecond
30.95.7.Show normal
30.95.8.Pass arguments.callee to show function
30.95.9.Shows all paragraphs.