jQuery confirm dialogue with link
<p>I have a link that when clicked opens a dialogue and when a CONFIRM button in the dialog is clicked the user needs to be sent to a specific URL via GET action with some variables  (original link). Clearly, if CANCEL is clicked, void link click action.</p>

<p>Not really sure how to put this all together. Here's what I've go so far.</p>

<p><strong>JS</strong></p>

<pre><code>$("#doSomething").click(function(){
        $("#myConfirm").dialog({
            resizable: false,
            height:140,
            modal: true,
            buttons: {
                "Continue": function() {
                    $(this).dialog("close");
                    // go to url...
                },
                Cancel: function() {
                    $(this).dialog("close");
                }
            }
        });
    });
</code></pre>

<p><strong>HTML</strong></p>

<pre><code>&lt;a href="page.php?var=1" id="doSomething"&gt;Link&lt;/a&gt;
</code></pre>
