View Full Version : Quick solution required...

07-21-2011, 11:51 AM
I want to create dynamic Select option in form, I want that whenever user clicks on add member button then new row will get added & i have done that by taking help of DOM createElement method & I want that by using same, I want to create select option drop down list.

07-21-2011, 07:33 PM
So, what is the problem?

You can add <option> elements to <select> by using Node.appendChild() method or by using options NodeList (Array-like object) to put the option in the specified position or by using Select.add() method, see this reference on JavaScript Kit (http://www.javascriptkit.com/jsref/select.shtml).