开发者

jquery selector which finds an element which has an attribute with one of several values

开发者 https://www.devze.com 2023-02-01 18:58 出处:网络
I need a jquery ninja to he开发者_如何学JAVAlp me find the best jquery selector to solve my need:

I need a jquery ninja to he开发者_如何学JAVAlp me find the best jquery selector to solve my need:

// pseudo jquery selector:
var match = $('table[facet=ProductCateogory or ProductCatagoryTier2 or DocumentCategory]')


// this would not match:
<table facet="EiaBrand"

// this would match:
<table facet="ProductCategory"


I think you have to specify them separately using the multiple selector ,:

var match = $('table[facet=ProductCateogory],table[facet=ProductCatagoryTier2],table[facet=DocumentCategory]')
0

精彩评论

暂无评论...
验证码 换一张
取 消