jQuery - On hover add and remove class by Norlihazmey Ghazali
Remove class and add class when hover
HTML
<div>
<img class="hidden" src="3.jpg"/>
<img src="2.jpg"/>
</div>
JavaScript
$( "img" )
.mouseout(function() {
$(this).removeClass('hidden');
})
.mouseover(function() {
$(this ).addClass( "hidden" );
});