【问题标题】:How to find last child of particular type (table) using jQuery?如何使用jQuery找到特定类型(表)的最后一个孩子?
【发布时间】:2012-04-16 06:57:20
【问题描述】:

假设我有以下结构:

  <div id="main">
    <table> 
       <tbody>
          <tr>
            <td>
               <div>
                 <table> 
                   <tbody>
                      <tr>
                        <td>
                           <div><table>Last table here</table></div>
                        </td>
                      </tr>
                   </tbody>
                 </table>
               </div>
             </td>
          </tr>
       </tbody>
    </table>
  </div>

如何找到最后一张桌子?

【问题讨论】:

    标签: javascript jquery html jquery-ui html-table


    【解决方案1】:

    尝试以下方法:

    $("#main table:last")
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2018-02-12
      • 2015-11-17
      • 2013-12-01
      • 2011-01-24
      • 1970-01-01
      • 2021-11-12
      • 1970-01-01
      相关资源
      最近更新 更多