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 are session objects?
What are the differences between code behind and code inline?
What is the use of placeholder control? Can we see it at runtime?
Explain how to prepare culture-specific formatting in .net.
When using the Pager object, inorder to know which page to go, which property you have to set to grid?
How is my content secured from unauthorized access?
What is the difference between response.redirect and server.transfer?
What is the difference between mechine.config and web.config?
What's the ASP.Net Application life cycle?
How to send a DataReader as a parameter to a remote client ?
How ASP.NET page works?
Explain exception filters?
What is an axd file?
What are the new login controls in asp.net 2.0?
What is postback pixel?