title: Getting HTML or JSON response from ajax call, Which is good?
body: <p>I have a functionality in my project where I have implemented the search functionality.</p>
  
  <p>On submitting the form via ajax, I need to show all the results in a division.</p>
  
  <p>There are two ways I can do this.</p>
  
  <ol>
  <li>Getting the JSON data as ajax response and bind it to the HTML elements.</li>
  <li>I can also get the completely formatted HTML response from the ajax call and can directly bind it to the result div on the search page.</li>
  </ol>
  
  <p>So which way is suggestible ?  </p>