【发布时间】:2012-01-25 15:33:58
【问题描述】:
鉴于以下 html,是否有一个选择器允许我根据 type 获取两者?
<input type="text" />
<input type="button" />
$('input[type=text || button]'); //for example, double pipes as an OR does not work
我浏览了文档,但找不到任何关于使用逻辑运算符的能力或提供匹配列表的方法。
【问题讨论】: