Get custom data-attribute in select2 with <select>

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

Let\'s assume you have the following HTML5


    
    
      
      
    

$("#select2").select2('data').element[0].attributes[0].nodeValue --> Value Attribute
$("#select2").select2('data').element[0].attributes[1].nodeValue --> Data-URl Attribute

提交回复
热议问题