how can I give an array as options to select element?

mohfuss

New Member
I have a select element on my HTML page. I want to populate it with an array. as we can give an array as dataprovider to comboBox in action script. I do the followingin HTML...\[code\]<table> <tr> <td> <label>Recording Mode:</label> </td> <td> <select id="rec_mode"> </select> </td> </tr></table>\[/code\]in javascript...\[code\]var videoSrcArr = new Array("option1", "option2", "option3", "option4", "option5");\[/code\]how can I populate rec_mode element when page is loaded with VideoSrcArr? Thanks
 
Back
Top