给定以下HTML,是否有选择器允许我基于type
获取这两个元素?
<input type="text" />
<input type="button" />
$('input[type=text || button]'); //for example, double pipes as an OR does not work
我查阅了文档,但是没有找到有关使用逻辑运算符或提供匹配列表的能力的任何信息。
给定以下HTML,是否有选择器允许我基于type
获取这两个元素?
<input type="text" />
<input type="button" />
$('input[type=text || button]'); //for example, double pipes as an OR does not work
我查阅了文档,但是没有找到有关使用逻辑运算符或提供匹配列表的能力的任何信息。