A placeholder value can be defined and will be displayed until a selection is made. Select2 uses the placeholder attribute on multiple select boxes, which requires IE 10+. You can support it in older versions with the Placeholders.js polyfill.
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Placeholder is an attribute or a prop | 2 | 1053 | January 25, 2021 | |
Add Placeholder Text to a Text Field-- | 4 | 558 | March 9, 2021 | |
::placeholder vs [placeholder] difference? | 6 | 2197 | March 9, 2021 | |
El atributo placeholder con un marcador de texto | 6 | 791 | January 7, 2025 | |
Placeholder not appearing in textbox | 2 | 4610 | January 3, 2022 |