Mam problem z oskryptowaniem selecta. Otoz w uproszczeniu chodzi mi o to zeby przy wyborze jednej z opcji w select uaktywnil sie kolejny. Pewnie to banalne ale szukam, probuje i nic ;/ Co tutaj jest nie tak?
Z gory dziekuje za pomoc
<html> <head> <meta http-equiv="Content-type" content="text/html; charset=utf-8" /> <script type="text/javascript"> function shownext() { if (document.getElementById('select1').selectedIndex == '2') { document.getElementById('select2').disabled = false; } else { document.getElementById('select2').disabled = true; } } </script> </head> <body> <table> <tr> <td> <select name="select1" id="select1" onChange="shownext()"> </select> </td> <td> <select name="select2" id="select2" disabled> </select> </td> </tr> </table> </body> </html>