I have a JavaScript method that acts when a specific class (mcb) of forms is submitted:
function BindCloseMessage() {
$(".mcb").submit(function(event) {
alert("closing...");
event.preventDefault();
});
}
Instead of calling an alert, I need to access the identifier of the form whose request is being called. How can I do it? Even better would be advice for accessing any attribute ...
thanks
source
share