xoxco/jQuery-Tags-Input — Issue #47: confused to use autocomplete plugin
Author: navotera
Created: 2012-02-10 00:54:19+00:00
State: open

i'm eager to integrate jquery autocomplete ...

before using the tagsinput i have already use the jquery autocomplete on my simple input text...
this is my jquery script :

----------------------------------------------------------------------------------------------------------------------------------------------------------------------

$(document).ready(function() {
$(function() {
$( "#penulis" ).autocomplete({
source: function(request, response) {
$.ajax({ url: "/index.php/admin/penulis_auto",
data: { term: $("#penulis").val()},
dataType: "json",
type: "POST",
success: function(data){
response(data);
}
});
},
minLength: 4
});
});
});

----------------------------------------------------------------------------------------------------------------------------------------------------------------------
that code work nicely, but when i trying to integrate that into tags input, i cannot understand how it becomes no respond when i type 4 keyword hoping that there autocomplete pop-up that suggest my input... here my tagsinput integration script :

----------------------------------------------------------------------------------------------------------------------------------------------------------------------
$(function() {

$('#penulis').tagsInput({
width:'auto',
height:'auto',
defaultText:'Tulis penulis',
autocomplete_url: 'index.php/admin/penulis_auto',
autocomplete:{selectFirst:true,width:'100px',autoFill:true}
});
});
----------------------------------------------------------------------------------------------------------------------------------------------------------------------

by the way thanks for nice plugin i'm planning to use it on my later educational project... :)