I want to apply mouse events for 114 divs. There are lots of condition for one div. I wrote for one div but there are about 900 lines. If I want to do that for 114 divs it will be really difficult and also boring. I tried examples below but didn't work.
var abc= new Array();
abc[0] = ".ABC";
abc[1] = ".DEF";
$(abc).mouseenter(function() {
Some code
});
or
for (var a=0;a<114;a++) {
$(abc[a]).mouseenter(function() {
Some code
});
}
or
while (var a=0;a<114;a++) {
$(abc[a]).mouseenter(function() {
Some code
});
}