HTML select option to be captured from Google Spreadsheet

前端 未结 3 600
闹比i
闹比i 2020-12-11 10:58

I have been spending days to get over this but no luck.

I have a html page in Google script whereby I want a dropdown list - this is achieved as follows



        
3条回答
  •  暖寄归人
    2020-12-11 11:37

    To display the elements in the array instead of the array object itself, you need to include the DATA array inside Scriptlet tags.And I see no requirement to use a 2-dimensional array. The correct syntax should be:

    
    

    And its really a bad idea to mix data-fetching code & html UI code within a template. You should use separate gs and html files & apply the optimizations as Mogsdad has suggested.

提交回复
热议问题