0

I read a lot of posts about the jquery form submission validation. But none of them answers my question:

Is it possible to have a form without a submit button or input submit, and before submitting this form by jquery, check the html5 fields required validation popups?

If yes, how is it done?

lecodesportif
  • 10,157
  • 8
  • 36
  • 57
neoDev
  • 2,629
  • 2
  • 29
  • 61
  • Possible duplicate - http://stackoverflow.com/questions/7002230/trigger-standard-html5-validation-form-without-using-submit-button – Rob Scott Jun 02 '15 at 12:34
  • @RobScott 1) I sayd I readed a lot of posts, including this one. 2) As in the title of that post the OP asks how to trigger validation without using submit button, that is different from have a form WITH NO SUBMIT BUTTON 3) after readed that post, please can you explain how to solve my question? – neoDev Jun 02 '15 at 12:53
  • OK, well you have to have something to fire. Since you don't have a submit button OR a button, use an anchor link? `$('#yourAnchor').click(function(e) { document.getElementById("myForm").submit(); });` – Rob Scott Jun 02 '15 at 13:03
  • @RobScott ok Rob does not matter... – neoDev Jun 02 '15 at 13:05
  • You have to have an event to use to submit the form in the first place. `blur, focus, click, swipe` something. If you could possibly post your HTML then I think it'd be a lot easier – Rob Scott Jun 02 '15 at 13:07

0 Answers0