...

View Full Version : Quick solution required...



M4N07
07-21-2011, 10: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.

Hamza7
07-21-2011, 06: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).



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum