sono riuscito a fare il codice x aggiungere un nuovi campi al menu a tendina multiplo
ma sapreste dirmi come faccio a far sì che non vengano aggiunti campi gia presenti nel menu a tendina multiplo giazie.
una altra domanda
ho anche provato ad aggiungere il bottone x rimuovere un campo selezionato ma anche in questo caso niente... questo é il codice che ho inserito
oviamente i bottone inserito é <input type='button' onclick='togligame()' value="rimuovi">codice:<script language="javascript"> function togligame(){ var sel = false; for (i=0;i< namegamelist.options.length;i++){ var current = namegamelist.options[i]; if (current.selected){ sel = true; if (current.value == 'temp'){ alert ('You cannot move this text!'); return; } namegamelist.options[i] = null; i--; } } if (!sel) alert ('You haven\'t selected any options!'); } </script>

Rispondi quotando