Hi! can anyone tell me what is wrong with the code? It has something to do with the way i call the value of the selected option but i cannot track the problem.. <html> <meta http-equiv="Content-Type" content="text/html; charset=windows-1255 "> <head> <script type="javascript"> function foo(l,c) { var z=document.getElementById(c) alert(l.z.options[l.z.options.selectedIndex].value) } </script> </head> <body> <form id="ghost"> <select name="bery" id="sel" onchange="foo('ghost','sel')"> <option>1</option> <option>2</option> </select> </body> </form> </html> Code (markup): thanx!