开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜