The following works in IE9 but not in Firefox. What can I do to make it work in firefox.
Code:
<html>
<head>
<script type="text/javascript">
function upperCase()
{
var x=document.getElementById("fname");
alert(x.value);
}
</script>
</head>
<body>
Enter your name:
<select size="1" id="fname"