I am using Html.BeginForm and I have one submit and one Save as draft button both of type "Submit". I need to call Javascript validation on submit function but not for save as draft.
using (Html.BeginForm("Index", "Home", FormMethod.Post, new { enctype = "multipart/form-data" , onsubmit = "javascript:return ValidateOnSubmit()" }))
How do I identify which button is clicked to validate only for submit?