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
What are the different types of errors in javascript?
How to define a named function in JavScript?
Difference between private, public and static variable?
Explain few difference between null, undefined or undeclared javascript variable?
Write about the errors shown in javascript?
What are all the types of Pop up boxes available in JavaScript?
What is the difference between remove() and removeChild()?
How do I view javascript files in chrome?
What is encodeuri() in javascript?
What is the use of isNaN function?
What is the naming conventions for the variables in javascript?
What is difference between ajax and javascript?
Are Attributes and Property the same?
What is spread operator?
Explain javascript closures by example.