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 four types of javascript objects?
What is closure?
What is difference between undefined variable and undeclared variable?
Can you explain the difference between call and apply?
What is a frontend framework?
How to write comment in JavaScript?
What is a noscript tag?
What is difference between array.splice() and array.slice() method in javascript?
What are the primitive data types in JavaScript?
How do I turn off javascript in chrome?
How do I use an external javascript file?
What is the difference between null and undefined?
What are different types of popup boxes available in javascript?
What is argument objects in javascript?
Can you access Cookie using javascript?