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...

How to add a combo box dynamically at run time in Java
script?

Answer Posted / kannappanksk

for (var i=0;i<5;i++)
{
document.forms[0].cmb1.options[i]= new Option("Test"+i,i)
}

Is This Answer Correct ?    77 Yes 35 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the different types of errors in javascript?

893


How to define a named function in JavScript?

931


Difference between private, public and static variable?

1029


Explain few difference between null, undefined or undeclared javascript variable?

861


Write about the errors shown in javascript?

848


What are all the types of Pop up boxes available in JavaScript?

1028


What is the difference between remove() and removeChild()?

973


How do I view javascript files in chrome?

874


What is encodeuri() in javascript?

1013


What is the use of isNaN function?

880


What is the naming conventions for the variables in javascript?

944


What is difference between ajax and javascript?

959


Are Attributes and Property the same?

968


What is spread operator?

825


Explain javascript closures by example.

873