<html> <head> <script type="text/javascript"> function zmiana() { var a = document.getElementById('abc'); var b = docuemt.getElementById('wynik'); /// <---- literowka oczywiscie document b.innerHTML = a.selectedIndex.value; } </script> </head> <body> <div id="selekty"> <select name="a" id="abc" onChange="zmiana();"> </select> </div> <div id="wynik"> </div> </body> </html>
ale nadal nie pokazuje value zaznaczonego w liscie
edit nieaktualne ale jak by kogos interesowalo to
dopisalem
i dziala jak marzenie
a.options[c].value