Wednesday, May 17, 2017

function to required filed validator in HTML

function v3()
{
var v=document.getElementById("TextBox1").value;
if(v==null||v=="")
{
alert("Enter value")
document.getElementById("TextBox1").focus();
return false;
}
else
{
return true
}
}

No comments:

Post a Comment