var array = new Array(1, 2, 3, 4, 5);
var length = array.length;
for ( var i=0; i<length; i++ ){
// action sur array[i]
}
for( val in array ) {
// action sur array[val]
}

<![CDATA[ ]]>
Retourne l'état checked d'un input en particulier
$('#checkBox').attr('checked');
Retourne toutes les checkbox cochées
$('input[type=checkbox]:checked');
$('#top').click(function() {
$('html, body').animate({
scrollTop: $('#content').offset().top
}, 'slow');
return false;
});
if ($('#element').length > 0) {
// action
}
$('#element').click(function() {
$(this).toggleClass('myClass');
});
var newURL = window.location.protocol + "://" + window.location.host + "/" + window.location.pathname;
var filter = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
if (filter.test(email.val())) {
// Do
}