Jquery Selector for Element type and Class name?

前端 未结 2 708
名媛妹妹
名媛妹妹 2021-01-07 22:18

I have an element we\'ll call selectedTable that contains this innerHtml:


    
        

        
相关标签:
2条回答
  • 2021-01-07 22:35

    Just concatenate the two:

    $(selectedTable).find("td.ms-cal-nav-buttonsltr");
    

    the selectors you tried were looking for a .ms-cal-nav-buttonsltr element underneath the td.

    0 讨论(0)
  • 2021-01-07 22:36
    $('td.ms-cal-nav-buttonsltr', selectedTable);
    
    0 讨论(0)
提交回复
热议问题