Wiem jak dodac option do istniejacego select'a
Ale jak usunąć jakiś option o danej wartości(value) ?
<html> <head> <script type="text/javascript"> function usun(lista, val) { lista = document.getElementById(lista); opcje = lista.getElementsByTagName('option'); for(i = 0; i < opcje.length; i++) { if(opcje[i].value == 'test') { lista.removeChild( opcje[ i ] ); break; } } } </script> </head> <body> <select id="sel"> </select> </body> </html>