I have img and I need to rotate it 90 degree when I click on it.
<img src="img/right-arrow.png" alt="" class="show">
when I use
.show {
transform: rotate(90deg);
}
in Css file it works. but when I do it in jQuery it doesn't work. here is my code in jQuery
$('.show').click(function(){
$(this).css("-webkit-transform" : "rotate(90deg)");
}
);