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

后端 未结 5 1573
南笙
南笙 2020-12-08 15:43

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 following

<
5条回答
  •  Happy的楠姐
    2020-12-08 16:03

    I would recommend to use object instead of array it will be of great helpful and in respected manner with standards. The reason is WE can index into the object by the "key" and get the "value" . To display contents and resetting them you can follow this NOTES

    CHECK HERE

    
    
    
    

提交回复
热议问题