title: Use ajax like load
body: <p>I make some script, that have modal window on fancybox and on load it's fills by some content from other files. And i have some quetions:</p>
  
  <p>I want to load content via ajax to my container (<strong>#dialog-analogy</strong>). But not full page - only one div with id (<strong>#get-cats</strong>). I dont know, how to get a content of id from ajax page. Thi is draft script:</p>
  
  <pre><code>function FillCats(catid) {
      $.ajax({
          url: "catalogue.php?cat="+catid+"&amp;size=1",
              cache: false,  
              success: function(html){  
                      var getcat = $('#get-cats').html(html); // wrong
              $("#dialog-analogy").html(getcat);
              }  
      });
  }
  </code></pre>