title: Adding search result with Jquery
body: <p>iam trying to setup an little search-engine for my website. I want to add an div for each search result. In the moment i do the following :</p>
  
  <pre><code>success: function(data) {
  
              if (data[0] == 'nothing') {
                  result = $('#search-result');
                  result.append('&lt;h3&gt;' +  LANG.nothing + '&lt;/h3&gt;');
                  $('#ajax-load').empty();
                  return false;
              } else {
                  jQuery.each(data, function(i, val) {
                      entry = "&lt;h3&gt;&lt;a href='" + val.link + "'&gt;" +
                      val.title + '&lt;/a&gt;&lt;/h3&gt;' + '&lt;p&gt;' +
                      val.description + '&lt;/p&gt;' + '&lt;p&gt;' +
                      val.tutorials + '&lt;/p&gt;' + "&lt;img src='" +
                      val.screenshot + "/&gt;";
                      result = $('#search-result');
  
                      result.append("&lt;div class='span-6'&gt;" + entry + '&lt;/div&gt;');
                  });
              }
  </code></pre>
  
  <p>But iam sure, there is an better way with jquery or ?</p>