jquery select2 - not working

后端 未结 6 805
春和景丽
春和景丽 2020-12-15 05:41

I am using select2 plugin(ivaynberg.github.io/select2). I am trying to display a dropdown(select). It is getting all the items in data.php as options. However select2 is mea

6条回答
  •  有刺的猬
    2020-12-15 05:56

    After much reading, I decided to change the select2.js itself.

    At line 2109 change it to

    this.focusser.attr("id", "s2id_"+this.select.context.id);
    

    If your input tag is as so

    
    

提交回复
热议问题