Originariamente inviato da webfrancy
codice:
<SELECT NAME="proj_id" onChange="document.location.href='action.php3?proj_id='+document.myform.proj_id.value;">
  <OPTION VALUE="16">Investimento</OPTION>
  <OPTION VALUE="18">Formazione</OPTION>
  <OPTION VALUE="21">Assenze</OPTION>
  <OPTION VALUE="70" selected>Timesheet</OPTION>
</SELECT>
il comando onchange di questa select non funziona, mi dice che il valore e' undefined..
non capisco, con una applicazione pressoche' identica funzionava..
sapete aiutarmi?
Oppure puoi provare così:

codice:
<SELECT NAME="proj_id" onChange="document.location.href='action.php3?proj_id='+this[this.selectedIndex].value;">
  <OPTION VALUE="16">Investimento</OPTION>
  <OPTION VALUE="18">Formazione</OPTION>
  <OPTION VALUE="21">Assenze</OPTION>
  <OPTION VALUE="70" selected>Timesheet</OPTION>
</SELECT>
Ciao !