I have a jQuery code which initializes the prototype class using jquery like this:
var sliders = [];
$('#slider').each(function() {
sliders.push(new Slider(this))
})
I need to convert this into pure Javascript code for initializing Slider prototype class.
can anyone help it? I’m not good with javascript..
Well, there can only be 1 id on a page, which makes it a lot simpler…