question on validation plugin

question on validation plugin

I have a form that contains submit 2 buttons: Update & Delete. Update button goes through all validations and eventually falls through to my submitHandler, The Delete button on other hand bypasses form validation "class=''cancel" and falls to the same submitHandle. Now that I am in my handler I need to detect witch button was actually pressed so that I take correct action. I am not sure how to do it though. Any ideas are welcome.