Below is a code snippet, where we retrieve a form value. Before further processing check if the value is not null..
//-- code snippet starts here
var val = document.FileList.hiddenInfo.value;
alert("val is "+val); //-- this prints null which is as expected
if(null!= val)
{
alert("value is "+val.length); //-- this returns 4
}
else
{
alert("value* is null");
}
`
//-- ends here
Any ideas why it happens so.. ??