Código HTML:
<form id="idname" name="idname" method="post" action=""> <label> <div class="cajaFilt"><div class="titleFil">Rango de Edades</div><div class="cuerpoFil"><label><select name="edadR" id="edadR"> <option value="1-10" >1-10</option> <option value="10-20" >10-20</option> <option value="20-30" >20-30</option> <option value="30-40" >30-40</option> <option value="40-50" >40-50</option> <option value="50-60" >50-60</option> <option value="60-120" >60 Mas...</option> </select> </label> </div><div class="cajaFilt"><div class="titleFil">Tipo de publicacion</div><div class="cuerpoFil"><label><select name="tipo" id="tipo"> <option value="vendo" >Vendo</option> <option value="compro" >Compro</option> <option value="alquilo" >Alquilo</option> <option value="arriendo" >Arriendo</option> </select> </label> </div><div class="cajaFilt"><div class="titleFil">Estrato</div><div class="cuerpoFil"><label><select name="estrato" id="estrato"> <option value="1" >1</option> <option value="2" >2</option> <option value="3" >3</option> <option value="4" >4</option> <option value="5" >5</option> <option value="6" >6</option> <option value="7" >7</option> </select> </label> </div><div class="cajaFilt"><div class="titleFil">Marca</div><div class="cuerpoFil"><label><select name="marca" id="marca"> <option value="Chevrolet" >chevrolet</option> <option value="mazda" >Mazda</option> <option value="honda" >Honda</option> </select> </label> </div> <input name="catBus" type="hidden" value="1"> <input name="catBus" type="hidden" id="categoria" value="1" /> <input type="button" name="filtrarCons" id="filtrarCons" value="FILTRAR" /> </label> </form>
apenas logre esto:
$("#formFiltros option:selected").each(function () {
tmpEleg=$(this).val();
dataGet=dataGet+"="+tmpEleg;
});
como puedo hacerlo????