Reputation: 434
here is my code in fiddle http://jsfiddle.net/4yb42/10/
the problem is after off mouseover
or mouseleave
by this code:
jQuery('.star-rating span').off('mouseover mouseleave');
how to ON or start again effect of mouseover
or mouseleave
??
it is not working after you click fist time on ClickMe1 ClickMe2 ClickMe3 ClickMe4 ClickMe4
(the convert in to red color) then click on reset button , and now mouse over on ClickMe1 ClickMe2 ClickMe3 ClickMe4 ClickMe4
its on effect on mouse over
Upvotes: 0
Views: 162
Reputation: 4904
of()
and on()
. Code
jQuery('.star-rating span').on({
mouseenter: function () {
me(this);
},
mouseleave: function () {
ml(this);
},
click: function () {
cl(this);
}
});
Hope it helps..!!
Upvotes: 2
Reputation: 32831
Two options:
Upvotes: 1