Thank you for your help. But your code doesn't work here. I changed to use id and suddenly everything worked. Here is the new code
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http:// www.w3.org/TR/html4/loose.dtd"> <html debug="true"> <head> <meta http-equiv="Content-Type" content="text/html"> <title>Test Page</title> <script language="JavaScript" type="text/javascript" src="/ jsgameviewer/js/jquery.js"></script> <script language="JavaScript"> function openGame(){ var option = $("#games [EMAIL PROTECTED]"); alert(option.text()); } </script> </head> <body> Select one: <select id="games"> <option selected="true">games/test1.sgf</option> <option>games/test2.sgf</option> <option>games/test4.sgf</option> </select> <script language="JavaScript" type="text/javascript"> openGame(); $("#games").change(openGame); </script> </body> </html>