#submit-handler

[ follow ]
Raymondcamden
6 months ago
Web development

TIL - submit() versus requestSubmit()

Using requestSubmit() method helps in enforcing form field validation that is skipped when using submit().
requestSubmit() method ensures that submit handlers attached to the form are triggered, unlike submit() which ignores them. [ more ]
[ Load more ]