Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 210
  • Last Modified:

jquery next with index

Hi,

There is a way to specify a parameter with next

$(this).next().next().next().next()

is there a way to specify how many next statements, something like that:

$(this).next(4) ????
0
joyacv2
Asked:
joyacv2
1 Solution
 
leakim971PluritechnicianCommented:
$(this).nextAll(":eq(4)")

Open in new window


Don't forget the first index is 0 (so 4 is 5th item)
0
 
joyacv2Author Commented:
works perfect!!! Thanks!!!!
0

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now