Ver Mensaje Individual
  #1 (permalink)  
Antiguo 08/05/2015, 16:05
saulvr91
 
Fecha de Ingreso: mayo-2015
Mensajes: 5
Antigüedad: 9 años, 6 meses
Puntos: 0
Información Limpiar Selects Dependientes

Disculpen me gustaría limpiar mis selects, l accación que quiero haces es que al momento de dar click en el primero me limpie todos y de paso la búsqueda que hace.

Código PHP:
<form class="form-horizontal" id="formdependiente">
                                                    <label></label>
                                                    <select name="ano"  class="selectdepend" id="ano">
                                                    <option value="">-Seleccionar año-</option>
                                                    <?php while($rmysql_fetch_object($c)){
                                                    echo 
"<option value=".$r->id.">".$r->name."</option>";
                                                   } 
?>
                                                    </select>
                                                    
                                            </div>
                                            <div class="col-md-6">
                                                <div class="form-group"> 
                                                     <label></label>
                                                    <select name="marca" class="selectdepend" id="marca">
                                                    <option value="">-Seleccionar marca-</option>
                                                    </select >
                                            </div>
                                        </div>
                                        
                                     
                                             <div class="col-md-6">
                                                <div class="form-group"> 
                                                    <select name="modelo" class="selectdepend" id="modelo">
                                                    <option value="">-Seleccionar modelo-</option>
                                                    </select> 
                                            </div>
                                        </div>
                                             <div class="col-md-6">
                                                <div class="form-group"> 
                                                    <select name="motor" class="selectdepend" id="motor">
                                                    <option value="">-Seleccionar motor-</option>
                                                    </select> 
                                            </div>
                                        </div>