title: Bootstrap search suggestion as user types
body: <p>I'm using Spotify API's search endpoint to give the user a suggestion of the artist he's looking for as he types. Ex: he types 'em' on the search box, I'd like to take whatever first entry matches 'em' from the Spotify request and then print the rest in the search box with a light font weight. In this case, when typing "em", I'd like for it to show "eminem" in the search box.</p>
  
  <p>The code I have so far:</p>
  
  <pre><code>$( "#name" ).keyup(makeAjaxRequest);
  
  function makeAjaxRequest() {
    if($('input#name').val().length &gt; 2) {
      $.ajax({
        url: 'https://api.spotify.com/v1/search',
        data: {q: $('input#name').val()},
        type: 'get',
        success: function(response) {
          $('table#resultTable tbody').html(response);
        }
      });
    }
  }
  </code></pre>
  
  <p>Example of the JSON I'm working with: 
  <a href="https://api.spotify.com/v1/search?q=em*&amp;type=artist" rel="nofollow noreferrer">https://api.spotify.com/v1/search?q=em*&amp;type=artist</a>
  Thank you very much!</p>