From a44edb1f292b0e120dc9ca20974d330bdaa11379 Mon Sep 17 00:00:00 2001 From: Roy Truelove Date: Fri, 12 Jul 2013 09:28:46 -0400 Subject: [PATCH] Improved docs for placeholder option (#155) --- index.html | 1 + select-2.1.html | 1 + select2-latest.html | 1 + 3 files changed, 3 insertions(+) diff --git a/index.html b/index.html index edea33d2..fb855e11 100644 --- a/index.html +++ b/index.html @@ -424,6 +424,7 @@ milestone: 11

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.1

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/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.