jQuery属性选择器用于多个值

给定以下html,是否有一个选择器允许我基于类型获取两者?
<input type="text"  />
<input type="button"  />
$('input[type=text || button]'); //for example,double pipes as an OR does not work

我浏览了这些文档,但是我找不到任何使用逻辑运算符的能力或提供匹配列表的方法

解决方法

这应该有助于:
$('input[type="text"],input[type="button"]');

相关文章

页面搜索关键词突出 // 页面搜索关键词突出 $(function () {...
jQuery实时显示日期、时间 html: &lt;span id=&quot...
jQuery 添加水印 &lt;script src=&quot;../../../.....
中文:Sys.WebForms.PageRequestManagerParserErrorExceptio...
1. 用Response.Write方法 代码如下: Response.Write(&q...
Jquery实现按钮点击遮罩加载,处理完后恢复 思路: 1.点击按...