I have a page(ASP.NET 3.5) with a number of buttons, some of them are saving buttons, some are not. I have to be generic, i.e. cannot call individual controls by ID. My save buttons will probably have attribute UserSubmitBehavior = true. In a click event handler I need to distinguish what type of button I pressed, so:
$('input[type=submit]').bind('click', function(e)
{
//need to know how to set up this condition
if (this.type = "submit")
{
//do something here
}
else
{
//do something else
}
});
How can I do that?