Hai everybody, this is the proplem.when i excute the page and on clicking the button am getting error message saying that 'menu1.value is null or not an object'. how can i handle it.Please help me
<SCRIPT type="text/javascript">
function test1(form) {
if (form.menu1.Value == "Select")
alert("Please select some other value!")
else {
alert("Hi "+form.menu1.value+"! Form input ok!");
}
}
</SCRIPT>
..
..
..(and in the <body>)
..
<h:selectOneMenu styleClass="selectOneMenu" id="menu1" value="Select">
<f:selectItem itemValue="Select" itemLabel="select"/>
<f:selectItem itemValue="Value1" itemLabel="SAC" />
</h:selectOneMenu>
<TD><hx:commandExButton type="submit" value="Submit" styleClass="commandExButton" id="button1" onclick="return test1(this.form);"></hx:commandExButton>