load another php page dynamically in jquery ui on click of a button
<pre><code>jQuery(function ($) { 
    // Load dialog on page load
    // Load dialog on click
    $('#basic-modal .basic').click({
        modal:true,
        open: function ()
        {
            var id = $('#id').attr('value');  
            $(this).load('edit.php?id='+id);
        },
        height: 400,
        width: 400,
        title: 'Dynamically Loaded Page'
    });
});
</code></pre>

<p>This is not opening the dialog on the click of the button. what is it that i am doing wrong here?</p>
