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: select / cascading

Tom06 free asked 4 years ago


Hello Guys

I try to do a cascading select choice with two select boxes.

Both are dependants. And the second one will update after the first one has changed.

Like this https://mdbootstrap.com/snippets/jquery/tom06/2045635

But I don 't know how we can do dependence....

(selects with filters, check before validation)

Thank you for you help


Krzysztof Wilk staff answered 4 years ago


Hi!

Maybe try to use this solution: https://mdbootstrap.com/snippets/jquery/tomekmakowski/693723

Hope it'll meet your expectations :)


Tom06 free commented 4 years ago

thank you for your answer. Yes it could be great, but my datas come from DB ( via a fetch (pdo). Here I see two lists, variables in JS.

Also I need , the value (from option value), for the first category (country) and the value from city (option value fro city).

Also, I cannot have a filter for each category ( country/ city)

Can we apply the validation form ?

thank you


Krzysztof Wilk staff commented 4 years ago

I'm afraid Bootstrap and MDBootstrap don't have cascader select. This snippet is a work of our imagination :D

But I can suggest to use one of plugins to achieve this goal. For example this: https://www.jqueryscript.net/form/Cascading-Dropdown-Bootstrap-Cascader.html



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: Free
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: 4.17.0
  • Device: mac
  • Browser: safari
  • OS: mc
  • Provided sample code: No
  • Provided link: Yes