Interview Questions on JQuery
41. Explain fadein and fadeout?
Syntax : - $("element").fadin();
Ex :-
$( "#clickme" ).click(function() {
$( "#book" ).fadeIn( "slow", function() {
// Animation complete
});
});
42. Explain animate?
Syntax :- $("#idname").animate({//apply styles});
Ex :- $("#box").animate({height: "300px"});
43. How to execute function periodically?
setInterval(function () {
//call functions here
}, 3000);