Skip to content

Instantly share code, notes, and snippets.

@reinislejnieks
Created March 20, 2012 12:15
Show Gist options
  • Save reinislejnieks/2134545 to your computer and use it in GitHub Desktop.
Save reinislejnieks/2134545 to your computer and use it in GitHub Desktop.
jQuery : various
/* 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