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
Which .NET framework supports Web API?
What is a response cookie?
What do you understand from custom control?
What are validators and list some validators of asp.net?
What is query string?
How do we implement bundling in MVC?
What is class and object in asp.net?
What is the difference between user control an custom control?
What is paging in context of Memory?
Is global asax mandatory?
How can we Validate a Controls in ASP.NET page using JavaScript?
Define managed code and managed data in .net?
What are the different types of proxy patterns?
What is the behavior of a Web browser when it receives an invalid element?
Which is better union or union all?