javacript getElementById().value doesn't work

Posted by phil on Stack Overflow See other posts from Stack Overflow or by phil
Published on 2010-06-05T16:06:19Z Indexed on 2010/06/05 16:12 UTC
Read the original article Hit count: 144

Filed under:

Is there anything wrong with the code? It's not working.

<script>
t=document.getElementById('good');
document.write(t.value);
</script>

HTML:

Type-here: <input id='good' type='text' value="my value is high">

© Stack Overflow or respective owner

Related posts about JavaScript