I have the next array:
var Images = $('.cs_slider').children();
Checked the array and it is not empty.
The array contains divs, each one of them, has another div inside it.
I would like to use fadeOut() on the inside div (.info) of the next image that slides.
I tried using this, but it doesn’t work (Started with JQuery a month ago):
Images[CurrentImage].('.info').fadeOut();
CurrentImage is surely an integer.
The effect should run only once, so looping is not what I meant. Any ideas what’s wrong with it?
Thanks!
Try this:
which is equivalent to:
Note that
Images[CurrentImage]1 is a DOM element, not a jQuery object.1 NB: those are bad variable names – upper case is normally reserved for classes