Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What are the features that make asp.net more used framework? : asp.net mvc

1016


What is difference between viewstate and session state in javascript?

1110


What is a viewstate?

988


What is full form of asp.net?

1018


How can we implement a identity (sql server) call in an asp.net page?

1024


Explain Features in ASP.NET

1086


Is razor a programming language?

1007


What do you mean by authentication?

1073


Explain the benefits of viewstate?

1032


What is asp short for?

1009


How to display Alert in ASP.NET

1175


how to debug web services on consumer side?

1066


How do we implement bundling in MVC?

1108


What is Dynamic Web and discuss its usage with the help of real life examples?

1044


What is the use of autowireup in asp.net?

1055