Cancel form submit based on which submit button is clicked using JQuery (IE)
<p>I have a form with multiple submit buttons.  When one of those button is clicked, I would like to present a confirmation popup asking the user to confirm the chosen action.  If he presses OK, allow the form post.  If not, cancel it.</p>

<p>Problem is that I can't figure out the correct selector to use on the submit handler.  Here's what I currently but I get an undefined result:</p>

<pre><code>$("form").submit(function() {
    if ($("input[type=submit][clicked=true]").val() == "New") {
        // TODO - this isn't getting called.
    }
}
</code></pre>

<p>I read somewhere else that this code worked for someone, but it doesn't work for me in IE.</p>

<p>Any help is appreciated.  Thanks!</p>
