Try this:

<html><head>
<script language="JavaScript" type="text/javascript"
   src="jquery.js"></script>
<script language="JavaScript">
function openGame(){
  var option = $("#games option:selected");
  alert(option.text());
}
$(function() {
   openGame();
   $("#games").bind('change',openGame);
});
</script>
</head>
<body>
Select one:
<select id="games" name="games">
  <option selected="true">games/test1.sgf</option>
  <option>games/test2.sgf</option>
  <option>games/test4.sgf</option>
</select>
</body>
</html>


On 6/9/07, Guoliang Cao <[EMAIL PROTECTED]> wrote:

Hi,

I have below test html file and can not get it to display the selected
value. Can someone please let me know what I missed?

Reply via email to