javascript - How to use .next() by dynamically-filled content -
i'm doing simple photo gallery, implemented everything, want realize next , prev buttons. not understand how can utilize .next ()-function in code (see jsfiddle). im newbie in jquery.
all images loaded using php , ajax
if use:
$(".thumb").next()....
so elements class .thumb...
i write class each image ala ".thumb .image1"... there maybe improve solution exists?
jsfiddle
best regards, alex
thanks in advance!
i got it: here
not .next() function, got index of element in main-div...
var imageindex = $(this).index();
javascript jquery html gallery carousel
No comments:
Post a Comment