creativetimofficial / ct-material-dashboard-pro-laravel

Material Pro Dashboard For Laravel Framework 11.x and Up
https://www.creative-tim.com/live/material-dashboard-pro-laravel
19 stars 6 forks source link

Selectpicker is not showing a placeholder - unless I remove the selectpicker class #31

Closed SimonGuitarJackson2020 closed 4 years ago

SimonGuitarJackson2020 commented 4 years ago

Hi guys,

I'm trying to get a placeholder that says 'Please choose a level ...' in my selectpicker. The following code works fine if I remove the selectpicker class - the input shows with the 'Please choose a level ...' and then when I click and choose an option these words disappear from the list - as it should be. But if I include the selectpicker class to get the styling I want it does not anything until I click the input.

Here's my code:

``

Am I doing something wrong? I have checked at https://demos.creative-tim.com/marketplace/material-kit-pro/docs/2.1/components/forms.html .

Thanks in advance.

teamupdivision commented 4 years ago

Hello, thank you for using our products! Please checkout this link: https://demos.creative-tim.com/marketplace/material-kit-pro/docs/2.1/plugins/select-bootstrap.html

In order to put placeholder text you should use title=“placeholder text”