jQuery CallBack
home
Run
screen_rotation
fullscreen
cloud_download
<!DOCTYPE html> <html> <head> <title> jQuery Callback Example</title> <script type="text/javascript" src="http://code.jquery.com/jquery-2.1.4.min.js"> </script> <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.11.2/jquery-ui.min.js"></script> <script type="text/javascript"> $(document).ready(function(){ $("#animateButton").click(function(){ $("#t1").show("slow",function(){ alert("Callback function called..."); }); }); }); </script> </head> <body> <a href="javascript:void(0)" id="animateButton"> Click to callback </a><br> <br> <div id="t1"style="height:100px;width:100px;background:yellow;padding:3px;display:none;">Demo Div</div> </body> </html>
<!DOCTYPE html> <html> <head> <title> jQuery Callback Example</title> <script type="text/javascript" src="http://code.jquery.com/jquery-2.1.4.min.js"> </script> <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.11.2/jquery-ui.min.js"></script> <script type="text/javascript"> $(document).ready(function(){ $("#animateButton").click(function(){ $("#t1").show("slow",function(){ alert("Callback function called..."); }); }); }); </script> </head> <body> <a href="javascript:void(0)" id="animateButton"> Click to callback </a><br> <br> <div id="t1"style="height:100px;width:100px;background:yellow;padding:3px;display:none;">Demo Div</div> </body> </html>
Copyrights@tutorialsplane.com