JQUERY CALLBACK FUNCTIONS

Norman Reedus

Total Post:45

Points:315
Posted by  Norman Reedus
JQuery 
 516  View(s)
Ratings:
Rate this:
We want to use call back function in jquery. How to use this Please help me.
  1. aditya kumar Patel

    Post:254

    Points:1810
    Re: jQuery Callback Functions

    <!DOCTYPE html>

    <html xmlns="http://www.w3.org/1999/xhtml">

    <head>

    <title>The jQuery Callback Example</title>

    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script>

    <script>

    $(document).ready(function () {

    $("button").click(function () {

    $("p").hide("slow", function () {

    $('#callback').html("Function Callback");

    });

    });

    });

    </script>

    </head>

    <body>

    <button>Click</button>

    <p>In computer programming, a callback is a piece of executable code that is passed as an argument to other code.</p>

    <div id="callback"></div>

    </body>

    </html>

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!