Topic: Select input not working
ahmado_vic asked 8 years ago
germantellezv answered 5 years ago
I'm using the pro version and what worked for me was check the filename of jquery script src. Try using CDN
// This worked for me
$(document).ready(function() {
$('.mdb-select').materialSelect();
});
Kamil Paciepnik answered 8 years ago
fadil.bourkouli pro answered 8 years ago
Kamil Paciepnik answered 8 years ago
fadil.bourkouli pro answered 8 years ago
Kamil Paciepnik answered 8 years ago
<select class="mdb-select" multiple>
<option value="" disabled selected>Shop By Brands</option>
<option value="1">FHI Heat</option>
<option value="2">Stylus</option>
<option value="3">Daily Beauty</option>
<option value="3">Hair Veil</option>
<option value="3">Neo bond</option>
</select>
JS:
// Material Select Initialization
$(document).ready(function() {
$('.mdb-select').material_select();
});
Regards fadil.bourkouli pro answered 8 years ago
Kamil Paciepnik answered 8 years ago
viqui pro answered 7 years ago
Gerard Fossoul pro answered 7 years ago
Natael Bernardo pro commented 6 years ago
Check if you have initialized material select : // Material Select Initialization $(document).ready(function() { $('.mdb-select').material_select(); }); And place JqueryJs before MDBJswsmith commented 6 years ago
Greetings. I too am having the same problem. I've replaced my select with your code and to no avail, it does not work. I've purchased MDBPro <script> // Material Select Initialization $(document).ready(function() { $('.mdb-select').material_select(); }); </script> <select class="mdb-select" multiple> <option value="" disabled selected>Shop By Brands</option> <option value="1">FHI Heat</option> <option value="2">Stylus</option> <option value="3">Daily Beauty</option> <option value="3">Hair Veil</option> <option value="3">Neo bond</option> </select>legaulph answered 6 years ago
Bartłomiej Malanowski staff pro premium commented 6 years ago
what's your code? what's your version of MDB? do you use pro or free version?Syed Arif Andrabi answered 6 years ago
Please check your initialization ..It should be as given below ..It should not be of free version
// Material Select Initialization $(document).ready(function() { $('.mdb-select').material_select(); });
the free version initialization is below and it donot work...
// Material Select Initialization
$(document).ready(function() {
$('.mdb-select').materialSelect();
});
the difference only is materialSelect() method which creates all problems..
replace it with
material_select()
Hope this works for all guys
Syed Arif
Syed Arif Andrabi answered 6 years ago
Please check your initialization ..It should be as given below ..It should not be of free version
// Material Select Initialization
$(document).ready(function() {
$('.mdb-select').material_select();
});
the free version initialization is below and it donot work...
// Material Select Initialization
$(document).ready(function() {
$('.mdb-select').materialSelect();
});
the difference only is materialSelect() method which creates all problems..
replace it with
material_select()
Hope this works for all guys
Syed Arif
Bartłomiej Malanowski staff pro premium commented 6 years ago
Material Select is a premium component and it won't work with MDB Free
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- User: Free
- Premium support: No
- Technology: General Bootstrap questions
- MDB Version: -
- Device: -
- Browser: -
- OS: -
- Provided sample code: No
- Provided link: No