Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $('#codigosAlumno').selectize({
- create: false,
- load: function(query, callback) {
- if (!query.length) return callback();
- console.log(query)
- $.ajax({
- url: '/Administrador/ConsultarAlumnosJSON?codigoFiltro=' + query,
- type: 'GET',
- contentType: "application/json; charset=utf-8",
- dataType: "json",
- data: {
- maxresults: 10
- },
- error: function () {
- callback();
- },
- success: function (res) {
- var rspns = eval(res);
- console.log(rspns);
- callback(rspns);
- }
- });
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement