Jquery Callback
jQuery Callback Functions
Influenza A virus subtype H5N1 callback role is executed later the electrical flow trial is 100% finished.
jQuery Callback Functions
JavaScript statements are executed business past times line. However, amongst effects, the adjacent business of code tin endure run fifty-fifty though the trial is non finished. This tin practise errors.To foreclose this, yous tin practise a callback function.
Influenza A virus subtype H5N1 callback role is executed later the electrical flow trial is finished.
Typical syntax: $(selector).hide(speed,callback);
Examples
The instance below has a callback parameter that is a role that volition endure executed later the enshroud trial is completed:
Example amongst Callback
$("button").click(function(){
$("p").hide("slow", function(){
alert("The paragraph is instantly hidden");
});
});
Example without Callback
$("button").click(function(){
$("p").hide(1000);
alert("The paragraph is instantly hidden");
});
Comments
Post a Comment