-
Notifications
You must be signed in to change notification settings - Fork 132
Open
Description
i have this code i want it to be in the suggestion place but i cant even select input box
<div id="my-tag-list" class="tag-list">
</div>
$(function() {
$('#ID FOR THE INPUT BOX').bind('keyup', function(){
var searchTerm = jQuery.trim($(this).val());
if(searchTerm == ''){
$('#search-container ul').html('');
}else{
//send the data to the database
$.ajax({
url: 'searchtags.php',
type: 'GET',
data: {search:searchTerm},
beforeSend: function(){
$('#search-container ul').html('<li>Loading...</li>');
},
success: function(data){
$('#search-container ul').html(data);
}
});
}
});
$('#my-tag-list').tags({
tagData:[],
suggestions:["data"], //the suggestion would go here
maxNumTags:[4]
});
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels