Topic: how to trigger Form Validation effects without submit button wrapped in a form?
ktakiya priority asked 2 years ago
Expected behavior
Actual behavior
*_Resources (screenshots, code snippets etc.)_*Hi there, I got a problem with submitting a form, if I used <-!form> wrapped the submit button, it is working. but if I used <-!form> without wrapped submit, it is a button, and javascript listens to this button, and javascript triggers submit the form. validation did not work.
is there a way to trigger the validation effects?
Grzegorz Bujański staff answered 2 years ago
I prepared a snippet for you: https://mdbootstrap.com/snippets/standard/grzegorz-bujanski/3695255#js-tab-view
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- ForumUser: Priority
- Premium support: Yes
- Technology: MDB Standard
- MDB Version: MDB5 3.9.0
- Device: MAC
- Browser: FF
- OS: MacOS
- Provided sample code: No
- Provided link: No