So, I have about 7 divs and every div is with different class. I want them to toggle SEPERATELY when I hover across it.
This is the function:
But if I want to have 7 div classes which every class toggle seperately, do I have to copy it 7 times and just change the class in every script? Because if I put a comma between each class it will toggle them at one time. So, any ideas?
This is the function:
Code:
$(".open").hide();
$("div.click").mouseenter(function(){
$(".open").toggleClass("active").animate({width:'toggle'},1000);
});
But if I want to have 7 div classes which every class toggle seperately, do I have to copy it 7 times and just change the class in every script? Because if I put a comma between each class it will toggle them at one time. So, any ideas?