Ver Mensaje Individual
  #3 (permalink)  
Antiguo 11/03/2017, 09:49
pablomaxit
 
Fecha de Ingreso: noviembre-2015
Mensajes: 26
Antigüedad: 8 años, 6 meses
Puntos: 0
Respuesta: Configurar form select con href?

Cita:
Iniciado por petit89 Ver Mensaje
puedes hacerlo con javascript... no necesitas cargar jQuery, te dejo el ejemplo automatico(evento OnChange) si quieres que se active con el submit pues sera de hacer la modificación que no es dificil..
Código HTML:
Ver original
  1. <select id="nav">
  2.      <option value="http://www.google.com">Google</option>
  3.      <option value="http://www.ebay.com">eBay</option>
  4.      <option value="http://www.amazon.com">Amazon</option>

Código Javascript:
Ver original
  1. document.getElementById("nav").addEventListener('change', function () {
  2.     window.location = this.value;
  3. }, false);&#8203;

saludos
Excelente! Graciaaaaas