miket-dev / multiselect

Pure js multiselect implementation
MIT License
38 stars 30 forks source link

Adding placeholder text? #18

Open Esn024 opened 3 years ago

Esn024 commented 3 years ago

Is there a way to show placeholder text? (Some custom grey text, visible if nothing is selected and nothing has been typed in yet)

danicarla commented 3 years ago

I'm looking for a way to do this too ... in the multiselect.min.js file in line 31 it shows the text of when you select all the items, maybe we should do something like that ...

M-Kamel commented 3 years ago

you can use this code $('.multiselect-input').attr('placeholder', 'Please Select');