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 is difference between deep and shallow object coping in javascript?

526


What is an immediately-invoked function expression?

496


How to setting a cookie with the contents of a textbox?

525


Name the datatypes of javascript?

545


just for testing

1747






What is client side in javascript?

436


How to find the selected radio button immediately using the 'this' variable?

513


What coding language should I learn first?

482


What is the requirement of debugging in javascript?

486


Is javascript used for backend?

464


How will you explain closures in javascript? When are they used?

540


How to add multiple functions in javascript?

467


How can you declare a class in javascript?

545


Are javascript variables case sensitive?

484


What are the seven data types of javascript?

508