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 / sudhakar sakthivel

function validate()
{
if(document.getElementById("NameId").value == null ||
document.getElementById("NameId").value.trim()=="")
alert("Please enter the name");
document.getElementById("NameId").focus();
return false;
}

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

In the Repeater control which way you can edit?

1148


What is advantage of asp.net?

1042


Elaborate differentiation between Cache and Application?

1024


Explain the purpose of storyboard.targetproperty.

993


Why would a company use an application service provider?

991


Define repository pattern in mvc.net? : asp.net mvc

1104


How u refer webservices?

2016


Types of instancing properties and explain each. Tell the difference between multiuse,singleuse and globalmultiuse and which is default ?

2859


How is a session stored and maintained in asp.net?

1051


Is session server side or client side?

1018


How will create assesblies at run time?

1043


Is viewstate secure?

1015


What is viewstategenerator?

1269


Explain the difference between sql invalidation and sql notification.

1018


can we remote debug applications with the remote debugger installed with vs.net 2002, with vs.net 2003?

2210