Topic: Form client side validation focus to select dropdown

Jogesh pro asked 5 years ago


Hi Team,

We are unable to focus select dropdown on client-side form validation. Any possible solution for autofocus to the unselected dropdown component in form validation.

Thanks, Jogesh.


Sebastian Kaczmarek staff commented 5 years ago

What kind of validation do you use? HTML native validation or some custom scripts?


Jogesh pro commented 5 years ago

Using some custom scripts to focus unselected dropdown to select value.


Sebastian Kaczmarek staff answered 5 years ago


Isn't that what you are looking for?

Material Select validation example - MDB Snippets

Material Select can be validated using native HTML5 form validation, which means that you can add required attribute to the <select> element and that's all, your control will be required.



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue

  • ForumUser: Pro
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: 4.6.1
  • Device: All
  • Browser: All
  • OS: Both
  • Provided sample code: No
  • Provided link: No