次のhtmlを指定すると、type
に基づいて両方を取得できるセレクタがありますか?複数の値のjQuery属性セレクタ
<input type="text" />
<input type="button" />
$('input[type=text || button]'); //for example, double pipes as an OR does not work
私は、ドキュメントを経て、私は論理演算子を使用する機能や、マッチングリストを提供する手段で何かを見つけることができませんでした。
可能重複してください[jqueryの:?multple可能な属性値によって選択するためのクリーンな方法を](http://stackoverflow.com/questions/5471775/jquery-cleaner-way-to-select-multiple-possible-possible-attribute-values) –