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 four types of javascript objects?

576


What is closure?

643


What is difference between undefined variable and undeclared variable?

572


Can you explain the difference between call and apply?

626


What is a frontend framework?

564






How to write comment in JavaScript?

1061


What is a noscript tag?

540


What is difference between array.splice() and array.slice() method in javascript?

581


What are the primitive data types in JavaScript?

622


How do I turn off javascript in chrome?

547


How do I use an external javascript file?

595


What is the difference between null and undefined?

565


What are different types of popup boxes available in javascript?

593


What is argument objects in javascript?

572


Can you access Cookie using javascript?

630