jQuery ajax form with two submit button how get currently clicked button id?

Viewed 23

I have written code like document activeElement This one is working all browser except safari, how can I fix this?

 submitHandler: function(form) {
        var bname = $(document.activeElement).attr('id');
        alert(bname);
        }
0 Answers
Related