开发者

Jquery +html table

开发者 https://www.devze.com 2023-01-17 01:15 出处:网络
how to find the html or controls of next td usi开发者_如何学运维ng jquery inan html table?$(\'table#yourtableid td\') will get you all TDs in specified Table

how to find the html or controls of next td usi开发者_如何学运维ng jquery in an html table?


$('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


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

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

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

0

精彩评论

暂无评论...
验证码 换一张
取 消