<p>I have this form:</p>

<pre><code>&lt;form name="customize"&gt;
    Only show results within 
        &lt;select name="distance" id="slct_distance"&gt;
            &lt;option&gt;25&lt;/option&gt;
            &lt;option&gt;50&lt;/option&gt;
            &lt;option&gt;100&lt;/option&gt;
            &lt;option value="10000" selected="selected"&gt;Any&lt;/option&gt;
    &lt;/select&gt; miles of zip code
    &lt;input type="text" class="text" name="zip_code" id="txt_zip_code" /&gt;
    &lt;span id="customize_validation_msg"&gt;&lt;/span&gt;
&lt;/form&gt;
</code></pre>

<p>How can I select the <code>input</code> and <code>select</code> with one jQuery selector?</p>

<p>I tried this but it selected all of the selects and inputs on the page:</p>

<pre><code>$("form[name='customize'] select,input")
</code></pre>

For me your suggestion worked. You could also use
```
```
form[name='customize'] select, form[name='customize'] input
```
```
Both selectors work as I see it. Maybe the the problem lies somewhere else?
I tried
```
```
$("form[name='customize'] select, input").css( 'font-size', '80px' );
```
```
on your example HTML. The font size for select and input changed.
--- edit ---
My suggestion above is the right one. It selects just the elements in the customize-form.