Dynamically add item to jQuery Select2 control that uses AJAX

前端 未结 9 1605
梦毁少年i
梦毁少年i 2020-11-29 02:44

I have a jQuery Select2 control that uses AJAX to populate:



         


        
9条回答
  •  半阙折子戏
    2020-11-29 03:23

    Extending on Bumptious Q Bangwhistle's answer:

    $('#select2').append($('

    This would add the new options into the

    提交评论

提交回复
热议问题