How remove the Zoom class hover state after ajax response. I use the $("#element").removeClass("zoom") but this is not work it remove the whole class. I want to remove only hover satae of class.
CSS code
<style type="text/css">
.zoom
{
-moz-transition: all 2s;
-webkit-transition: all 2s;
transition: all 2s;
}
.zoom:hover
{
-moz-transform: scale(3);
-webkit-transform: scale(3);
transform: scale(3);
}
.blur
{
-webkit-filter: blur(5px); /* Safari 6.0 - 9.0 */
filter: blur(5px);
}
</style>
JS Code
<script type="text/javascript">
$(document).ready(function($)
{
$("#street-display").click(function()
{
$("#street-display").addClass('zoom');
var value=$('#street-display').attr('src');
var imgsplit=value.split('/');
var actimgname=imgsplit[1].split('.');
var nextimageapper=parseInt(actimgname[0])+parseInt(1);
$.ajax({
url: 'street_change.php',
type: 'POST',
data: {param1: nextimageapper},
})
.done(function(resp) {
$('#street-display').attr('src','street_images/'+resp);
})
.fail(function() {
console.log("error");
})
.always(function() {
console.log("complete");
});
});
});
</script>