Toggle view of modal button
<p>I have the following modal dialog:</p>

<pre><code>$(document).ready(function() {
$( "#addLocation" ).dialog({
        modal: true,
        height: 820,
        width: 550,
        buttons: {
            "Add Location": function() {
                document.forms['mapform'].submitted.value='1';
                document.forms["mapform"].submit();
            },
            Cancel: function() {
                $( this ).dialog( "close" );
            }
        },
});
});
</code></pre>

<p>How can I toggle the 'Add Location' button? I want it to display only when a certain button within the dialog is clicked.</p>

<p>Thanks,</p>
