Are you sure you want to delete?
<p>I just wrote a confirm delete function that requires a class name:</p>

<pre><code>jQuery(document).ready(function($) {
    $('.ConfirmDelete').click(function() {
        var question = $(this).attr('title');
        if (question == '') question = 'Delete this record?';
        return confirm(question);
    });
});
</code></pre>

<p>Usage:</p>

<pre><code>&lt;input name="Delete" type="submit" value="Delete" class="ConfirmDelete" title="Delete #UsrName#?" /&gt;
</code></pre>

<p>I'd like to change the selector from .ConfirmDelete to something like:</p>

<pre><code>$('input:submit').attr('name','Delete').val('Delete')
</code></pre>

<p>Meaning:
If a submit button has the name 'Delete' and it's value is 'Delete', then go ahead and assume they want to confirm the delete without requiring them to have a ConfirmDelete class.</p>
