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

Which object wraps the state or data of a user?

1054


What is a postback in asp net?

1156


Tell me the code snippet to show how we can return 404 errors from HttpError?

1335


How to reduce the width of textbox in editcommandcolumn of datagrid?

1067


What are the merits and demerits of viewstate?

1091


How many types of state management are there in asp net?

1075


Explain diff. Betn dataset and recordset?

1068


How do you use viewstate?

1061


What is difference between ispostback and autopostback in asp net?

1112


What is application session?

1043


Does web services support data reader like pom project?

995


Where is session data stored in asp net?

1032


What is validation in asp.net?

1145


Why is an object pool required?

1112


When we use cookie less session? Explain its working?

1072