Forms Plugin - Get Button Id

Forms Plugin - Get Button Id

Hi

I am using the forms plugin to do an Ajax Submit my question is

I have two buttons on the page I can use to submit the form, I need to know which one has been clicked to submit the form.

How can i do this?

some code below:

  1.     $(this).ajaxSubmit({
            dataType: 'json',
            resetForm: false,
            beforeSubmit: function(formData, form, opts) {
               
                $('input[type=submit], input[type=image]', this).attr('disabled', 'disabled');
                   
            },
            success: function(json) {
                $('input[type=submit], input[type=image]', this).removeAttr('disabled');
                   
                    $('#form').submit();
                }
            }
                });













I need to work out which button has been used I can give them differnt Id's and then trigger an event based on this