title: Repopulate carousel with AJAX
body: <p>$(function(){</p>
  
  <pre><code>function showDisplay(items){
  
    $.get('test'+items+'.html', function(data) {
      $('.carousel ul').empty();      
      $('.carousel ul').html(data);
      $("div.example-2").carousel({ direction: "vertical", dispItems:5 , pagination:true });
      $('&lt;div class="nextGroup"&gt;next&lt;/div&gt;').appendTo($('.content-pag')).click( function(){
         showDisplay('2');
      });
  });
  
    showDisplay('1');
  
  });
  </code></pre>
  
  <p>I have this code. The idea is repopulate carousel with new items added by AJAX, but for some reason when I call the NEXT button the carousel crashes. I'm using jQuery Carousel 0.9.5.</p>
  
  <p>.content-pag is generated by carousel</p>
  
  <p>Any idea?</p>