Javascript for of loop to append with JQuery only appends to first element

后端 未结 0 476
暗喜
暗喜 2020-11-21 07:15

For whatever reason, this only appends to the #category element

    var categoriesListOptions = []
    for(i of categories){
        var option =         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题