unable to move a div to right which is creating dynamically
<p>I have 2 buttons in my <code>div</code>, left side and right side. When I click on right button it need to move to right and for left button it need to move to left. I used:</p>

<pre><code>           $('.left').click(function(e) {
                     $('#votersDetailsTable').animate({
                     'marginLeft': '30px'
                     });                
           });
</code></pre>

<p>can i use like</p>

<pre><code>         $('.left').click(function(e) {         

             $('#votersDetailsTable').live("animate",{
            'marginLeft': '30px'
            });                
        });
</code></pre>

<p>Here <code>maindiv</code> is also creating dynamically .I am unable to move the div.Please help me.Thanks in advance.. </p>
