1 2 3 4 5 6 7 8 9
|
$(function() {
//highlight the current nav
$('a').on('click', function(e){
$("#ACCUEIL a").filter( function(){ return $(this).html()==='HOME'; }).parent().addClass('active');
$("#LOCATION a").filter( function(){ return $(this).html()==='LOCATIONS'; }).parent().addClass('active');
$("#NEUF a").filter( function(){ return $(this).html()==='LOCATIONS BIENS NEUFS'; }).parent().addClass('active');
$("#CONTACT a").filter( function(){ return $(this).html()==='CONTACT'; }).parent().addClass('active');
}) |