how to refresh Material Select after selecting value by jque


Topic: how to refresh Material Select after selecting value by jquery

sansoft asked 5 years ago

How to refresh value after setting value by jquery https://mdbootstrap.com/docs/jquery/forms/select/#searchable-with-label


MDBootstrap staff pro premium priority commented 5 years ago

Hi, sansoft If you want to refresh render of material select use attribute destroy: true in 2nd initialization. If you want to simply pick the option with jQuery from the select simple .val(value) method will put the value inside of the select.

If you need additional help We are here for you.

Best Regards, Piotr


sansoft answered 5 years ago

Not working, Check console in below screenshot. I m using select #searchable-with-label

enter image description here


MDBootstrap staff pro premium priority commented 5 years ago

Hi sansoft, On Monday we plan to ship the improved version of a material selected. I think that these improvements will help you in your development process.

Best Regards, Piotr


Please insert min. 20 characters.

FREE CONSULTATION

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

Status

Open

Specification of the issue
  • User: Free
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: 4.8.10
  • Device: Laptop
  • Browser: Mozilla
  • OS: Windows
  • Provided sample code: No
  • Provided link: Yes