title: How to add search suggestion on to ajax sucess
body: <p>I need to add search suggestion to a text box. I was trying many ways. But I couldn't find correct way. I get data(arraylist) from back end using ajax.Then return it to jsp as json. Now I need to add search suggestion function to according to ajax success. dataType of ajax success is json.</p>
  
  <pre><code>$("#tagText").bind("keyup", function (event){
       event.preventDefault();
       var tagSuggest = $("#tagText").val();
       var url= "../operation/SuggestSupport!searchSuggest.action?documentTag.tagText="+tagSuggest+"&amp;page=0&amp;activePage=0";
        $.ajax({
           type: "POST",
           url: url,
           dataType:"json",
           success: function(data){
  
           //search suggestions code
  
        },
        error: function (data){
        alert("Error");
        }
        });
  });
  </code></pre>
  
  <p>This is my text box</p>
  
  <pre><code>&lt;div class="input-group"&gt;
       &lt;s:textfield name="document.tagText" id="tagText" cssClass="form-control" maxlength="100" autocomplete="off" style="width: 237px; border-radius: 4px;"/&gt; 
  &lt;/div&gt;
  </code></pre>