if( $("#infotitle1:contains('all')") ){
$("#bouton1").css( "background-color", "#BEBEBE" );
}
else if ( $("#infotitle1:contains('claims')") ){
$("#bouton1").css( "background-color", "#FF8B00" );
}
else {
$("#bouton1").css( "background-color", "red" );
}
I would like to modify the backgroundcolor of #bouton1 depending on the content of #infotitle1
my code do not work, can anybody help ?