Friday, February 11, 2011

Java Script Text Box Empty Validation:-


[code]
function TextboxEmptyValidation()
{
var txt=document.getElementById("TextBox1");
if(txt.value=="")
{
alert("Textbox cannot be blank");
txt.focus();
return false;
}
}
You can call above function like this


[/code]

No comments:

Post a Comment