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






Pass arguments.callee to show function

  
<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>

   
    
  








Related examples in the same category

1.Display if hidden
2.Show fast
3.Show hidden fast
4.Show hidden slow
5.Show hidden tags
6.Show in millisecond
7.Show normal
8.Shows all paragraphs.
9.Open div tag based dialog