Write a code for "RequiredFieldValidator" in java script
Answer Posted / manoj
suppose the id of the field required to be validated is
NameId
Thus:-
function validate()
{
if(document.getElementById("NameId").value == null)
alert("Please enter the name");
}
Is This Answer Correct ? | 5 Yes | 3 No |
Post New Answer View All Answers
What is Pre-Render event in ASP.NET?
What is a web farm?
What is GAC in ASP.NET 2.0
How about the security in Activex DLL and Activex EXE ?
Explain the disadvantages of viewstate?
Why asp.net is better than php?
What is asp net_sessionid?
What is the purpose of master page?
Is asp.net web forms dead?
What are the types of validation in asp net?
What is a web api? Which protocol is used in a web api?
Explain the boxing and unboxing concept in .net?
What is use of Master Page in ASP.NET web pages?
Explain the asp.net page life cycle.
Which two new properties are added in asp.net 4.0 page class?