jQuery CallBack


jQuery Callback function is called when current action is completed. Example – When slideDown effect(action) is completed.


jQuery CallBack functions example

In the below example callback function is executed when the show effect is completed.

jQuery CallBack functions example


<script type="text/javascript">
  $(document).ready(function(){
       $("#animateButton").click(function(){       
            $("#t1").show("slow",function(){
               alert("Callback function called...");
              });
            });
          });
</script>    

Try it »


Advertisements

Add Comment

📖 Read More