Reputation: 8487
I am trying to do something like :
$(".test").find("button or input[type=button]")
How can i do this?
Upvotes: 2
Views: 456
Reputation: 237975
Yes, it's called the multiple selector and it's a comma:
$(".test").find("button, input[type=button]")
For the sake of completeness, note that :button
does exactly this, but will be slower in pretty much all modern browsers.
Upvotes: 4