next() jquery

Hi,

I have a code like this

$(this).closest('td').next().next().next().text()

Open in new window


how i can change something like
$(this).closest('td').next(3).text()
LVL 1
joyacv2Asked:
Who is Participating?
 
Rainer JeschorCommented:
Hi,
I am not sure (would have to prototype this) but this should do the trick:
$(this).closest('td').nextAll().slice(2,3).text()

Open in new window

HTH
Rainer
0
 
Rainer JeschorCommented:
Thanks - solution 1499 - one to go to celebrate
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.