Chris Westbrook
Chris Westbrook

Reputation: 2090

Selector to grab all <tr>s after a given row in jQuery?

I am trying to take information from a <tr> and prefill it in all <tr>s below that <tr>. I know I can grab the <tr> I want and put it in a variable, but is there a good selector for grabbing only the <tr>s below that row?

Upvotes: 1

Views: 115

Answers (2)

cgp
cgp

Reputation: 41381

Does it need to be filtered for tr's?

$(yourtr).nextAll()

An example., the source.

Upvotes: 1

chaos
chaos

Reputation: 124297

$(yourtr).nextAll()

Upvotes: 2

Related Questions