How to access element id and other attributes using jQuery?
<p>I have JavaScript method which acts when a particular class (mcb) of forms are submitted:</p>

<pre><code>function BindCloseMessage() {
    $(".mcb").submit(function(event) {
        alert("closing..."); //Here I want to get the id of form
        event.preventDefault();
    });
}
</code></pre>

<p>In place of alert call, I need to access the id of form whose submit is called. How can I do it? Even better will be the tip for accessing any attribute...</p>

<p>Thanks</p>
