jQuery select only tr/td in main table, not nested tables.

前端 未结 4 1868
感情败类
感情败类 2021-02-07 08:23

I currently have a table with a nested table in it:

   

        
      
      
      
4条回答
  •  猫巷女王i
    2021-02-07 09:12

    with this solution it does not matter whether you have a tbody tag in between:

    $('table').find('tr:first').parent().children()
    

提交回复
热议问题