Created
March 20, 2012 12:15
-
-
Save reinislejnieks/2134545 to your computer and use it in GitHub Desktop.
jQuery : various
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
/* include jQuery */ | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.js"></script> | |
<script src="http://cdn.jquerytools.org/1.2.5/jquery.tools.min.js"></script> | |
<script src="http://code.jquery.com/jquery-latest.min.js"></script> | |
/*--------------------------------*/ | |
jQuery(document).ready(function($){ | |
$('').addClass(""); | |
}); | |
/*--------------------------------*/ | |
$(document).ready(function(){ | |
}); | |
/*--------------------------------*/ | |
$("").click(function(){}); | |
/*--------------------------------*/ | |
/* is even number ?*/ | |
function isEven(value){return (value%2==0);} | |
/* to test if element exists */ | |
if ($(".newspan").length > 0){ | |
alert('element exists'); | |
}else{ | |
alert('element does not exist'); | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment