I use this plugin in my work: loupe | a jQuery image magnifier
loupe | a jQuery image magnifier
But there is a problem, the images change dynamically and the magnifier because of this is a bit bazhit. The solution would be to delete the current loop and re-call the plugin. But I do not know how to correctly remove the current magnifying glass :(
Here is the generated code
<div class="loupe" id="loupe" style="position: absolute; overflow: hidden; left: 220px; top: 319px; visibility: visible;"><img src="урл картинки скрыл" style="position: absolute; left: -313px; top: -424px;"></div>
If I use remove (), then the div will be removed, but the plugin will no longer load. Can you tell me what to do?