Write a code for "RequiredFieldValidator" in java script
Answer Posted / sudhakar sakthivel
function validate()
{
if(document.getElementById("NameId").value == null ||
document.getElementById("NameId").value.trim()=="")
alert("Please enter the name");
document.getElementById("NameId").focus();
return false;
}
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What is the part of url?
Explain repository pattern in asp.net mvc? : asp.net mvc
What are the differnt types of handler in ASP.NET?
What are server objects?
What kind of data can be stored in viewstate?
What are the benefits of Razor View?
Where is http session stored?
What would be salary for 8+ years of experience in ASP.NET in different metro city in india?
Explain ViewState?
Explain Life cycle of ASP.NET page when a request is made.
What is asp according to you?
What is recordset asp?
Just by seeing the signature of the bean how can you specify whether it is a stateful or stateless session bean?
Is asp.net outdated?
Describe a Windows Service and its lifecycle ?