I have some elements with a certain class and I want to store them in a variable when the document loads, like:
$(function(){
var sliderElements = $('.slider-element');
});
The problem is that I want a static copy of those elements (as in, the original elements should still exist in sliderElements
even if I delete them from the document in the meantime).
I've tried using clone()
and it doesn't seem to work in any version of Internet Explorer.
Could you please recommend me a workaround?