This should be really simple.
The code that is not working is listed below. This is part of a larger page where I am trying to validate the message subject field has a value in it.
I am using firfox and firebug, and can see the object I am looking for there. I could even get the objects value by switching the selector syntax to "input" and specifying the array position, but trying to get to it directly won't work.
I am using almost the exact same stuff on other pages in my site and they all work. This one has me at a loss.
URL for test page is:
http://www.careersinfood.com/newtcore/test.htm
<html>
<head>
<title>Contact Applicant</title>
<script language="javascript" src="/newtcore/js/jquery.js"></script>
<script language="javascript">
<!--
function validate(){
$("messageSubject").value='help me';
alert($("messageSubject").value);
alert(document.getElementById("messageSubject").value);
}
-->
</script>
</head>
<body>
<form name="frmContact" id="frmContact" method="post" action="test.htm">
<input type="text" name="messageSubject" id="messageSubject" value="hello world">
<input type="button" name="btnSend" value="Send Email" onclick="return validate();">
</form>
</body>
</html>