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

What is application Object?

775


What is difference between web config and global asax?

623


while developing webservices if i want some users to use my webservice only how can i give security to my webservice?

1593


Why SessionID changes in every request in asp.net?

745


What is the difference between union and join?

746


is there any third party tools are using in .net technologies? what are there ? give me the brief introduction?

2159


What is active web page?

729


Why do we need asp.net?

772


What are the steps to follow to host a web application on a web server?

767


What is the use of session in web application?

686


What is mvc in asp.net interview question? : Asp.Net MVC

693


Differentiate between early binding and late binding.

769


To display data in a Repeater control which template you provide?

776


What is asp net_sessionid?

816


Explain authorization levels in .net ?

793