hi, i'm wondering why is it javascript doesn't seem to accept null value as a real null? In order to know if its a null field later on, it's as if i have to check it against a string 'null'.
for example,
i have a txtName hidden field on my html.
I use javascript to document.myForm.txtName.value = null;
later on, when i try to detect it just doesn't work :
if(document.myForm.txtName.value == null){
alert('value is null');
}else if(document.myForm.txtName.value == 'null'){
alert('value is a string null'); //only this works!
}