Write a code for "RequiredFieldValidator" in java script

Answer Posted / jayamala

function validate()
{
if(document.getElementById("NameId").value =="")
alert("Please enter the name");
document.getElementById("NameId").focus();
return false;
}

Is This Answer Correct ?    4 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How will create assesblies at run time?

556


Web API supports which protocol?

858


Why viewstate is used in asp.net?

511


How would ASP and ASP.NET applications run at the same time on the same server?

1949


What are the versions of garbage collection?

1460






Differentiate between globalization and localization.

538


What are sharepoint pages?

498


Are there any resources for drop-in replacements for the default css that comes with the ASP.NET Website template?

565


Can we have 2 web config files?

547


List the major built-in objects in asp.net?

549


What is fulltrust?

565


Contrast oop and soa. What are tenets of each16. How does the xmlserializer work? What acl permissions does a process using it require?

525


What is skin in asp.net?

524


What are asp.net web forms?

523


What is asp.net mvc5? : Asp.Net MVC

539