Home > DeveloperSection > Forums > jQuery Callback Functions
Norman Reedus
Norman Reedus

Total Post:45

Points:315
Posted on    March-28-2016 10:41 PM

 JQuery JQuery 
Ratings:


 1 Reply(s)
 181  View(s)
Rate this:
We want to use call back function in jquery. How to use this Please help me.


aditya kumar Patel

Total Post:242

Points:1722
Posted on    March-28-2016 10:48 PM

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


Don't want to miss updates? Please click the below button!

Follow MindStick