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
How do I link an external javascript file to html?
What is the use of a weakmap object in javascript?
How to empty an array in JavaScript?
Is a javascript script faster than an asp script?
What is use of JavaScript and jquery?
What is Javascript namespacing? How and where is it used?
What is the difference between client side javascript and server side javascript.
Why is my javascript function not defined?
How to write a comment in javascript?
What is difference between local variable and global?
How do I use javascript to password-protect my web site?
How do you include a comment in javascript?
How do you reverse a string in javascript?
How to port a GUI application onto Web
How do I disable javascript in my browser?