Listen guys Im here again, I have a trouble and I donk know how to search for my problmen in the web (I searched for that like "remove hover" and I didnt find what I wanted).
I have a style like this one:
.myStyle li:hover
{
background: #9999FF;
}
and I have this in my html
<ul class="myStyle">
<li id="li1">1</li>
<li id="li2">2</li>
<li id="li3">3</li>
</ul>
and I have this script too
$('ul li').on('click', function() {
$(this).prependTo(list.closest('ul'));
}
So now, its works perfectly, but the li moved conserves the color of the class (#9999FF) after click, and doesnt quit until I pass the mouse over there. I have tried to remove class with removeClass but it doesnt work, please help me.
Any ideas for my problem?
Thank for u time!