Answers for "select2 selected data attribute"

2

select2 get data attribute value

$('#mySelect2').on('select2:select', function (e) {
    var data = e.params.data;
    console.log(data);
});
Posted by: Guest on July-20-2020
0

select2 get data attribute value

$('#payment_method').select2('data')[0]
Posted by: Guest on July-20-2020

Code answers related to "select2 selected data attribute"

Browse Popular Code Answers by Language