Solucio llista

De wikiserver
La revisió el 15:50, 18 gen 2015 per Jnoguera (Discussió | contribucions) (Es crea la pàgina amb «<source lang="java"> indice = document.getElementById("opciones").selectedIndex; if( indice == null || indice == 0 ) { return false; } <select id="opciones" name="opc…».)
(dif) ← Versió més antiga | Versió actual (dif) | Versió més nova → (dif)
Dreceres ràpides: navegació, cerca
indice = document.getElementById("opciones").selectedIndex;
if( indice == null || indice == 0 ) {
  return false;
}
 
<select id="opciones" name="opciones">
  <option value="">- Selecciona un valor -</option>
  <option value="1">Primer valor</option>
  <option value="2">Segundo valor</option>
  <option value="3">Tercer valor</option>
</select>