I've 'n' buttons
I need to
$('BUTTON').fadeOut();
... but I'd like to see one button at time disappear..
how to ?
I tried using next, but in the following way ALL disappears in one moment
$(".genresButton").first().fadeOut().next().fadeOut() ;
I tried to use fadeOut to fadeOut the next, but I've not inital knowledge of total number of buttons.
I tried using $.each() but without success
EDIT:
This is the working solution i choosed:
$("body").on('click', '.genresButton', function(event) {
$(".genresButton").not($(this)).each(function(index){
$(this).delay(index * 500).fadeOut(450);
});
});