// Si tu obtiens un $ is not a function :
jQuery.noConflict();
jQuery(document).ready(function() {
jQuery("a").click(function() {
alert("Un bonjour d'Aidoweb !");
});
});
// au chargement de la page
$( document ).ready(function() {
console.log( "ready!" );
});
$(function() {
console.log( "ready!" );
});
// Anonymous function
// Évènements
-- Changer --
$('#liste1').on('change', function() { // votre code }
-- Click --
$( "#target" ).click(function() {
alert( "T'as cliqué sur #target" );
});
-- Ecrire --
$('#monDiv').html('La fonction .html remplace le contenu du div');
-- Input select --