Holiday Notice: Support will be provided on a limited scale from December 24th, 2024, to January 2nd, 2025. Happy holidays and a wonderful New Year!


Topic: Click on button change select

Neanrakyr pro asked 4 years ago


Hello I write a script :

Change an Option value in the Select attribute when you click on a button.

Here is the Snipped code https://mdbootstrap.com/snippets/standard/neanrakyr/2514494

So due to the class="select" in the Select the script don't work.

Can you help me to fixed it ?


Mikołaj Smoleński staff answered 4 years ago


I made some changes in your snippet and now it works correct. There is a method setValue for this case. Best regards


Neanrakyr pro commented 4 years ago

Thank you it work perfectly !!! :D


joannarom free commented 3 years ago

Have I missed something? Why isn't .getInstance() documented in the API?



Please insert min. 20 characters.

FREE CONSULTATION

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

Status

Resolved

Specification of the issue

  • ForumUser: Pro
  • Premium support: No
  • Technology: MDB Standard
  • MDB Version: 1.0.0
  • Device: Desktop / Mobile
  • Browser: Any
  • OS: Windows 10
  • Provided sample code: No
  • Provided link: Yes