kbvishnu
kbvishnu

Reputation: 15650

Jquery +html table

how to find the html or controls of next td using jquery in an html table?

Upvotes: 0

Views: 151

Answers (2)

Fabian
Fabian

Reputation: 13691

I think you need to read up a little about the jQuery selectors.

$(function(){
      alert( $("#idofthetable td").html() );
});

http://api.jquery.com/category/selectors/

Upvotes: 0

TimS
TimS

Reputation: 6052

$('table#yourtableid td') will get you all TDs in specified Table

$('table#yourtableid td#specific-td').next() will get you the next element after specified TD

Have a look through the jQuery docs and tutorials:

http://api.jquery.com/next/

http://docs.jquery.com/Tutorials

Upvotes: 1

Related Questions