-
Notifications
You must be signed in to change notification settings - Fork 39
Open
Description
I have tried working with the example from here
https://github.com/mtkopone/zelect#ajax-loader-example
And nothing seems to work. There are javascript error from the start. Is this still maintained? Are there other clearer example for doing an ajax call?
I have tried only bare code to see like this and even the placeholder does not show even if it says there are no errors
placeholder: 'codes (<?php echo count($codes['products']); ?>)',
throttle: 150,
loader: function loader(term, page, callback) {
console.log('loader');
},
renderItem: function renderer(item, term) {
return console.log('renderer');
},
noResults: function noResultser(term) {
return console.log('no result');
//$('<span>').addClass('no-results').text(term + "didn't hit anything.")
}
Metadata
Metadata
Assignees
Labels
No labels