且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

jQuery查找具有特定数据属性的元素

更新时间:2023-01-17 18:41:10

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

You can use the attribute selector found in jQuery:

$('#r1').find('[data-rating="' + info + '"]')

参考:所有jQuery属性选择器的列表