Topic: define onClick Action for MDBSelectOption

ArmanRezazade free asked 3 years ago

Get the value of the item selected when clicks on the item (onClick OR onSelect action on each item). I'm currently doing this with the MDBDropDown component but would like to replace the MDBSelect component.The sample code I did with MDBDropDown is as follows : enter image description here

enter image description here

The attached image defines an onClick action for each item, but it is not possible in the MDBSelect component.How to do this with MDBSelect component?


Jakub Chmura staff answered 3 years ago

Hi @ArmanRezazade

In our components, we often use a getValue props to get the value from components like select or input.

Please check our documentation: At the top of the page is the API tab, click there and see what you can do with this component.

If you have any question don't hesitate to ask them

Best regards,


ArmanRezazade free commented 3 years ago

Thanks for your guidance

Please insert min. 20 characters.


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



Specification of the issue

  • User: Free
  • Premium support: No
  • Technology: MDB React
  • MDB Version: 4.21.0
  • Device: Desktop PC
  • Browser: Chrome
  • OS: Windows
  • Provided sample code: No
  • Provided link: No