Thursday, August 7, 2008

Require field Validations

if(document.getElementById("txtdesctype").value.length==0 ||  document.getElementById("txtdesctype").value.charAt(0)==" ") 
{
document.getElementById("txtdesctype").focus(); 
alert("Please Enter Payment Search Details"); 
document.getElementById("txtdesctype").value=""; 
return false ; 
}

No comments: