jquery modal window in asp.net
<p>I want to open default.aspx with jquery pop-up when I click on a button. But jquery modalwindow doesn't work. When I click the button default.aspx page opens directly.</p>

<p>Script:</p>

<pre><code>&lt;script type="text/javascript"&gt; 
 $("#myElement").click(function (e) {
     e.preventDefault();
     $.get("Default.aspx", function (resp) {
         var data = $('&lt;div&gt;&lt;/div&gt;').append(resp);
         data.modal();
     });
 });
 &lt;/script&gt;
</code></pre>

<p>Html: </p>

<pre><code>&lt;a id="myElement" href=""&gt;Linkler&lt;/a&gt;
</code></pre>

<p>or</p>

<pre><code>&lt;a id="myElement" href="default.aspx"&gt;Linkler&lt;/a&gt;
</code></pre>
