.next() in jquery, will it function to move to the next <div id=id1></div>

Posted by Jean on Stack Overflow See other posts from Stack Overflow or by Jean
Published on 2010-03-14T08:01:12Z Indexed on 2010/03/14 8:05 UTC
Read the original article Hit count: 318

Filed under:

Hello,

I want to move to the next from can I use .next()?

var i=0;
$('#next').bind('click',function(){

 $('#id'+i).next();

i++
});
<div style="width=150px;">
<div id=id1></div>
<div id=id2></div>
<div id=id3></div>
<div id=id4></div>
</div>

Thanks Jean

© Stack Overflow or respective owner

Related posts about jQuery