Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $('.cari').select2({
- placeholder: 'Cari...',
- ajax: {
- url: "{{ url('master/guru/santri/ajax') }}",
- dataType: 'json',
- delay: 250,
- processResults: function (data) {
- return {
- results: $.map(data, function (item) {
- return {
- text: item.nama,
- id: item.id
- }
- })
- };
- },
- cache: true
- }
- });
Add Comment
Please, Sign In to add comment