I was seeing a slider tutorial for jQuery, and in a part of the code, in which the objective was to go back to the first image, the code author did in a way I do not know, I knew how to search this on Google:
$(".ativo").fadeOut().removeClass("ativo");
$("#slide img:eq(0)").fadeIn().addClass("ativo");
The part of, $("#slide img:eq(0)")
left me confused, img:eq(0)
?
How does this work for :eq(0)
?