Last active
October 12, 2015 18:48
-
-
Save ElmahdiMahmoud/4070851 to your computer and use it in GitHub Desktop.
jquery: undefind
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (typeof jQuery == 'undefined') | |
{ | |
$("body").css('background','red'); // if jQuery is undefined so the let the background be ( RED! ) | |
} | |
else | |
{ | |
$("body").css('background','green'); // if jQuery is there so the let the background be ( Green! ) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment