- Joined
- Mar 14, 2012
- Messages
- 2
- Reaction score
- 0
all the other features of javascript r working except for this tag getElementById().can anyone tell me how to make it work????
<html>
<body>
<script>
alert(document.getElementById('mine').value);
</script>
<input type="text" id="mine" value="ooo"/>
</body>
</html>
<html>
<body>
<script>
alert(document.getElementById('mine').value);
</script>
<input type="text" id="mine" value="ooo"/>
</body>
</html>