<html>
<body>
<input type=”text” name=”q” id=”qTop” value=”2″ >
<input type=”text” name=”q” id=”q” value=”3″ >
<script>
var el = document.getElementById(‘q’);
alert(el.value);
alert(el.id);
</script>
</body>
</html>
So, guess what?
Exactly, this one will output: 2, qTop instead of 3,q
Known Microsoft issue aroung getElementById fixed in IE8.
