Get custom data-attribute in select2 with <select>

前端 未结 8 878
我寻月下人不归
我寻月下人不归 2020-12-05 18:38

Let\'s assume you have the following HTML5


                        
    
提交评论

  • 2020-12-05 19:04

    we can simply do this like:

    $(this).find(":selected").data("id")
    
    0 讨论(0)
  • 提交回复
    热议问题