How to disable material select / dropdown when using MDB Pro


Topic: How to disable material select / dropdown when using MDB Pro version?

camlynfx asked 6 years ago

When using MDB Pro - the dropdowns don't show up unless I add the required JS and class name to select tag.

$(document).ready(function() { $('.mdb-select').materialSelect(); });

However, I want to know if I can disable this by default and use material design on selects only when required.


Bartłomiej Malanowski staff pro premium answered 6 years ago

You can use the .browser-default class on the selects that you want to stay "normal"


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
  • User: Free
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: 4.7.4
  • Device: Desktop
  • Browser: Firefox
  • OS: Windows
  • Provided sample code: No
  • Provided link: No