MysticFallout
Technical User
i am having a major issue here. i am trying to populate a form textbox but nothing happens. i am using an external .js file and on my page i have the form set up like. i use XHTML strict.
and my JS looks like.
i use Mozilla, and when i use the JavaScript console it says document.test_form has no properties. any ideas? i know SOME JS, (just havent used it in over 2 years), so i am sure i am doing something wrong.
Code:
<form name="test_form" id="test_form">
<input type="text" name="test_text" id="test_text">
</form>
and my JS looks like.
Code:
document.test_form.test_text.value = "Hello";
i use Mozilla, and when i use the JavaScript console it says document.test_form has no properties. any ideas? i know SOME JS, (just havent used it in over 2 years), so i am sure i am doing something wrong.