Great solution Francisco. Worked like a charm.

Rey...

Francisco Brito wrote:
> I just do [EMAIL PROTECTED] Serialize will ignore anything that's not an 
> input 
> anyway.
> 
> -Brito
> 
> On 9/18/06, *Rey Bango* < [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> 
> wrote:
> 
>     If I have 4 form fields like below and I wanted to serialize them in
>     one
>     big swoop instead of 1 by 1, how might I go about doing it?
> 
>     I know I can do this for the text fields;
> 
>     $("[EMAIL PROTECTED]").serialize();
> 
>     but I'm not sure if I can combine the selects into that call and
>     minimize the code.
> 
>     Help?
> 
>     Rey...
> 
>     <div class="tableBorder" style="margin-bottom: 5px;">
>     <table border="0" width="99%">
>             <tr>
>     <td bgcolor="##428E46" align="center" colspan="2"><span
>     class="header">Product Search</span></td>
>             </tr>
>             <tr>
>               <td>SKU:</td>
>               <td><input type="text" name="skusearch" id="skusearch"></td>
>             </tr>
>             <tr>
>               <td>Title:</td>
>               <td><input type="text" name="titleearch"
>     id="titlesearch"></td>
> 
>             </tr>
>             <tr>
>               <td>Site:</td>
>               <td><select name="sitesearch" id="sitesearch">
>                       <option>Tropical Traditions</option>
>                       <option>HealthyBuyersClub</option>
>                    </select>
>               </td>
>             </tr>
>             <tr>
>               <td>Type:</td>
>               <td><select name="typesearch" id="typesearch">
>                       <option>Retail</option>
>                       <option>Wholesale</option>
>                      <option>All</option>
>                     </select>
>               </td>
>             </tr>
>             <tr>
>               <td colspan="2" align="center"><input type="button"
>     name="searchBtn"
>     id="searchBtn" value="Search">
>               </td>
>             </tr>
>     </table>
>     </div>
> 
>     _______________________________________________
>     jQuery mailing list
>     [email protected] <mailto:[email protected]>
>     http://jquery.com/discuss/
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> jQuery mailing list
> [email protected]
> http://jquery.com/discuss/

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to