Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get Suggestion from Database mysql #75

Open
kunz398 opened this issue Jun 20, 2017 · 0 comments
Open

get Suggestion from Database mysql #75

kunz398 opened this issue Jun 20, 2017 · 0 comments

Comments

@kunz398
Copy link

kunz398 commented Jun 20, 2017

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]
  		});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant