Forum

select2, dynamic ur...
 
Notifications
Clear all

select2, dynamic url from data attribute of component

1 Posty
1 Users
0 Reactions
998 Widok
0
Topic starter

example

1 Answer
0
Topic starter



    $('.my_generic_select').select2({
        ajax: {
            url:function (params) {
                return $(this).data('url');
            },
            dataType: 'json'
        }
    });

Odpowiedź

Author Name

Author Email

Your question *

 
Preview 0 Revisions Saved
Share: