Hi,
I have created a field, ‘chrgrade’ with a type ‘combobox’ and do a dblookup to display the choices.
Also I have created a Submit button to validate and save the document. As this form is for web, I have added codes below in the Submit button to check for compulsory fields. The code is :
if (document.forms[0].chrgrade.value == “”){
alert(“Please select your current grade !”);
return false;
}
The problem is, the above alert still appear on the screen even though I have selected my choices. When I tried to displayed the value, it is a null value.
This problem does not occurs if I entered the values directly into the ‘choices’ box.
Any codes that I miss ? Pls help.