I am trying to rotate the images. but its rotated only once and then it stops.
where am I going wrong and how to fix it .
Guess the second time it already has a class rotate90 so it doesnt rotate, tried removing the class and add it again but doesnt work.
.rotate90 {
transform: rotate(90deg) ;
-webkit-transform: rotate(90deg);
}
function RotateClockwise(){
var Ids = $(".ct input[type=checkbox]:checked").map(function(){
return $(this).parent().attr('id');
});
var string = "";
for(var i = 0; i< Ids.length; i++) {
string = Ids[i];
$("#img"+string).addClass('rotate90');
}
string = string.substring(0,string.length-1);
}