Closed tasmanwebsolutions closed 2 years ago
I spent a lot of time on this issue. You can fix it like this:
var categories = new Bloodhound({ datumTokenizer: Bloodhound.tokenizers.obj.whitespace('text'), queryTokenizer: Bloodhound.tokenizers.whitespace, remote:{ url: "<?php echo base_url('questions/tags');?>" } });
I use codeigniter and I encode my json data like
Which the json output results
[{"category_id":"1","name":"codeigniter"},{"category_id":"2","name":"php"},{"category_id":"3","name":"html"},{"category_id":"4","name":"css"},{"category_id":"5","name":"javascript"}]
I when I click on the input the list does not drop down for me to select category
What am I doing wrong? Bloodhound not defined but scripts are loaded.