如何使用jQuery按名称选择元素?

如何使用jQuery按名称选择元素?,第1张

如何使用jQuery按名称选择元素

您可以使用jQuery属性选择器:

$('td[name ="tcol1"]')   // matches exactly 'tcol1'$('td[name^="tcol"]' )   // matches those that begin with 'tcol'$('td[name$="tcol"]' )   // matches those that end with 'tcol'$('td[name*="tcol"]' )   // matches those that contain 'tcol'


欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/zaji/5509082.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-12-13
下一篇 2022-12-13

发表评论

登录后才能评论

评论列表(0条)

保存