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

Whats the difference between registerclientscriptblock, registerclientscriptinclude and registerclientscriptresource?

1001


How long do session variables last?

904


Securitywise What are the Enhancements in 2.0?

1882


Explain the concept of MVC Scaffolding?

963


What is diff. Between abstract class and an interface?

973


How to manage different kinds of sessions in ASP.NET?

1009


Which is faster viewbag or viewdata?

918


Explain method to handle error using HttpError in Web API?

1002


Are xaml file compiled or built on runtime?

916


What is a master page and what does it do?

882


What is the Intermittent crashing of application in production?

1004


What is the mvc model?

965


Do you know using sql cache invalidation?

966


What is razor? : asp.net mvc

989


Explain how caching in asp.net 2.0 is different from caching in asp.net 1.1?

922