Implement jQuery addClass to a modal dialog button
<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 implement the <code>addClass</code> function to the 'Add Location' button on the modal dialog?</p>

<p>Thanks,</p>
