Wallpapers Forums Login

How To Use If And Else Operator In Jquery An Example

this is an example i use for using the IF operator in javascript when using jquery.
$(document.body).click(function () {
if ($("div:first").is(":hidden")) {
$("div").slideDown("slow");
} else {
$("div").hide();
}
});


you can find the complete script at the jquery official site:

http://api.jquery.com/slideDown/

Related Content

Information

Share

wallpaperama | Wallpapers | Forums | Terms Of Service

copyright © 2013 wallpaperama - All Rights Reserved - Last Updated Mon May 06, 2013 (-8 GMT)
Powered by: Webune Forums V5