3
I would like to know how to select a specific element by the position of the index, because I can go through the structure with the next and Prev functions, but I’m not finding a way to select an element directly by its position. I am using Jquery
function proximo()
{
if($(".elemento").next().size())
{
$(".elemento").fadeOut().removeClass("elemento").next().
fadeIn(1000).addClass("elemento");
var texto = $(".elemento").attr("alt");
$("#slide p").hide().html(texto).delay(500).fadeIn();
}
}
$(".ativo")[i]
?– Beterraba