How to bind a dynamic DIV to Jquery Masonry plugin?
<p>I have some DIV's in my HTML that I load dynamically using AJAX.</p>

<p><code>$("#workPanel").load("ex.html");</code></p>

<p>I also have some static links that onclick, call the JQUery masonry to shuffle these dynamic DIV's..</p>

<pre><code>            $('#filtering-nav li.1 a, li.2 a, li.3 a').click(function(){
               $('#primary').masonry();

                 return false;
              });

$('#primary').masonry({
            columnWidth: 100, 
            itemSelector: '.box:not(.invis)',
            animate: true,
            animationOptions: {
            duration: speed,
            queue: false
            }
        });
</code></pre>

<p>The shuffling works fine after the first time the page loads, but when the dynamic DIV's are updated, the shuffling does not work anymore. I am guessing the live() or bind() function needs to be called somewhere, but I don't know how and where the binding needs to be done.
Please help me out here.</p>

<p>Thanks in advance!</p>
