jquery - add class to a div when hover another one (Javascript) -


i have limited understanding of javascriptan trying add class div when hover div right can add class same div able add let's class blue div called first when hover #second , #third.

current code :

          $(document).ready(function() {          $("#second, #third").hover(function(){          $(this).addclass("hover");         $(this).removeclass("hoverable");           },          function(){         $(this).removeclass("hover");              $(this).addclass("hoverable");          }       );          });          

my live website can seen @ : www.designinterieurm2.com/dev

$(document).ready(function() {          $('#second, #third').hover(function(){              $('#first').addclass('blue');         },          function(){             $('#first').removeclass('blue');          }); });    

Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -