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 difference between cookies and cache?
Why is this service branded with windows livetm?
What is the difference between user control an custom control?
What is the difference between cache and cookies?
What is difference between ispostback and autopostback in asp net?
What are the different types of Caching techniques in ASP.NET?
What is the difference between page.registerclientscriptblock and page.registerstartupscript?
Tell me the code snippet to show how we can return 404 errors from HttpError?
What is anonymous authentication?
9. Why should we hire you over the others waiting to be interviewed?
What is & in a url?
What is the difference between ASP Session State and ASP.Net Session State?
What are the different validators in asp.net?
Why do we need Sessions?
Explain the procedure to handle the process request using mhpm events fired? : asp.net mvc