Is there a way to do OR in jQuery selectors
for example, something like...
// get everything that is either an input or a select
$container.find(':any(inp开发者_开发知识库ut, select)');
What about
$container.find('input, select');
You can use :input
selector
$containder.find(":input")
which selects all input, textarea, select and button elements.
精彩评论