How to filter DOM elements that are either <div>s or <input>s using a single jQuery selector? For example, if I have the following HTML document:
<!DOCTYPE html ...>
<html xmlns="...">
<head>...</head>
<body>
<input value=""/>
<div></div>
<select><option value="hi">ho</option></select>
</body>
</html>
I would like to use something like $('body > ???') to select the <input> and the <div>, but not the <select>.
Use: