Unable to get data using document.getElementById() in IE7
<p>I am trying to retreive the value from select tag for selected option in Javascript</p>

<p>This is working fine in Mozilla but not in IE7.
Example:</p>

<pre><code>function uploadFiles()
{
    var x = document.getElementById('fileName').value;
    alert(x);
}
</code></pre>
