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 session objects?

990


What are the differences between code behind and code inline?

1092


What is the use of placeholder control? Can we see it at runtime?

1069


Explain how to prepare culture-specific formatting in .net.

965


When using the Pager object, inorder to know which page to go, which property you have to set to grid?

1030


How is my content secured from unauthorized access?

962


What is the difference between response.redirect and server.transfer?

1031


What is the difference between mechine.config and web.config?

1227


What's the ASP.Net Application life cycle?

1102


How to send a DataReader as a parameter to a remote client ?

3411


How ASP.NET page works?

1091


Explain exception filters?

1029


What is an axd file?

1091


What are the new login controls in asp.net 2.0?

982


What is postback pixel?

997