I have some form fields and a Save button (not Submit type). I want to implement the HTML5 required validation using
However it seems to work only with Submit button and not with normal button.
I cannot use Submit button, since I have custom code on my Save button
$("#saveForm").click(function(){
saveFormData();
showView('detailsView','editView');
setFormFieldValues();
})
How can I achieve the same with normal button ?