How to select(fetch) all the <select> elements in jQuery <p>I want to fill in all the options for things like </p> <pre><code>&lt;select id=such_a_field&gt; </code></pre> <p>to get the inputs in my form I can just go </p> <pre><code>$inputs = $('#myFormName :input'); </code></pre> <p>and iterate through them and set the value based on the id. For my select field, which I am now upgrading from a simple input to restrict what the user can put in, I first want to go read the set of available options (from the DB, via ajax of course), and then set the right one based on what's in the DB. Unfortunately </p> <pre><code>$selects = $('#myFormName :select'); </code></pre> <p>produces</p> <pre><code>Syntax error, unrecognized expression: unsupported pseudo: select </code></pre> <p>as of course :select isnt a pseudo selector. It would be enough just to extend my above :input selector and then enhance my field setting code to handle selects.</p>