Topic: mdb select not appearing - pro version
Shanmugham Sundaram pro asked 6 years ago
ppulfer pro answered 6 years ago
jquery-3.3.1.min.js:2 jQuery.Deferred exception: $(...).material_select is not a function TypeError: $(...).material_select is not a function at HTMLDocument.<anonymous> (https://HOST/:86:18) at l (https://HOST/js/jquery-3.3.1.min.js:2:29375) at c (https://HOST/js/jquery-3.3.1.min.js:2:29677) undefined
Shanmugham Sundaram pro commented 6 years ago
I did not get this error. But can MDB support can answer whats is wrong in using this select control of JQuery variant in an angular project?? am I missing something ???Sebastian Kaczmarek staff pro premium answered 6 years ago
.material_select()
as soon as the index.html
is served, while your actual <select>
control is rendered after this function call- in <app-root>
. Try calling $('.mdb-select').materialSelect()
on OnInit
or AfterViewInit
hook. At this time your <select>
element is already rendered and you can call .materialSelect()
on it to render it properly.
Also, if you want to implement MDB into your Angular project I would kindly recommend you to use MDB Angular. It is created to be used with Angular and is much easier to use in Angular project than MDB jQuery. Shanmugham Sundaram pro commented 6 years ago
Hi Thanks for the response. since I have purchased Jquery version, can I still use the pro version of Angular? or should it be another new purchase? Please clarify Thanks.Sebastian Kaczmarek staff pro premium commented 6 years ago
If you want to have both Angular and jQuery versions available you need to make two purchases. But if you would like to switch from jQuery to Angular version of MDB please reach our customer support at f.kapusta@mdbootstrap.comFREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Open
- User: Pro
- Premium support: No
- Technology: MDB jQuery
- MDB Version: 4.5.10
- Device: laptop
- Browser: chrome,firefox,opera
- OS: MAC
- Provided sample code: Yes
- Provided link: No
Sebastian Kaczmarek staff pro premium commented 6 years ago
Does yourselect
control hasmdb-select
class? Also, can you confirm thatmdb.min.css
is loaded on the page?Shanmugham Sundaram pro commented 6 years ago
Yes it has all requried -mdb-select
class added mdb.min.css as well.. and gets loaded when I view the page source