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

How do I link an external javascript file to html?

479


What is the use of a weakmap object in javascript?

479


How to empty an array in JavaScript?

527


Is a javascript script faster than an asp script?

484


What is use of JavaScript and jquery?

574






What is Javascript namespacing? How and where is it used?

530


What is the difference between client side javascript and server side javascript.

549


Why is my javascript function not defined?

487


How to write a comment in javascript?

684


What is difference between local variable and global?

474


How do I use javascript to password-protect my web site?

491


How do you include a comment in javascript?

481


How do you reverse a string in javascript?

461


How to port a GUI application onto Web

1672


How do I disable javascript in my browser?

488