From a44edb1f292b0e120dc9ca20974d330bdaa11379 Mon Sep 17 00:00:00 2001
From: Roy Truelove
The placeholder can be declared via a data-placeholder
attribute attached to the select
, or via the placeholder
configuration element as seen in the example code
When placeholder is used for a non-multi-value select box, it requires that you include an empty <option></option>
tag as your first option.
Optionally, a clear button (visible once a selection is made) is available to reset the select box back to the placeholder value.
diff --git a/select-2.1.html b/select-2.1.html index 6954635c..f292f20d 100755 --- a/select-2.1.html +++ b/select-2.1.html @@ -305,6 +305,7 @@ version: 2.1The placeholder can be declared via a data-placeholder
attribute attached to the select
, or via the placeholder
configuration element as seen in the example code
When placeholder is used for a non-multi-value select box, it requires that you include an empty <option></option>
tag as your first option.
Optionally, a clear button (visible once a selection is made) is available to reset the select box back to the placeholder value.
diff --git a/select2-latest.html b/select2-latest.html index 2de4676d..709f8ac4 100644 --- a/select2-latest.html +++ b/select2-latest.html @@ -437,6 +437,7 @@ $("#e2_2").select2({The placeholder can be declared via a data-placeholder
attribute attached to the select
, or via the placeholder
configuration element as seen in the example code
When placeholder is used for a non-multi-value select box, it requires that you include an empty <option></option>
tag as your first option.
Optionally, a clear button (visible once a selection is made) is available to reset the select box back to the placeholder value.