Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(".modell").select2({
- ajax: {
- url: "/index/getmodel?q=" + $('[name=category]').val() ,
- type: 'GET',
- dataType: 'json',
- delay: 250,
- processResults: function (data, page) {
- return {
- results: data.results
- };
- },
- },
- });
Advertisement
Add Comment
Please, Sign In to add comment