[英]Selecting last child using jQuery function children()
How to select a child in particular through the jQuery function children() ? 如何通过jQuery函数children()特别选择一个孩子?
I tried .children('a:last-child')
to no avail. 我尝试.children('a:last-child')
无济于事。
试试这个:使用:last
.children('a:last')
我想您的浏览器可能没有提供选择元素:last-child
,因此您可以尝试如下操作: .children('a').last()
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.