From f4bb8fe1b37eeb91f53f78d3d56a4fdd48ccb63b Mon Sep 17 00:00:00 2001 From: Igor Vaynberg Date: Wed, 2 May 2012 08:59:16 -0700 Subject: [PATCH] add placeholder example for multiselect --- index.html | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/index.html b/index.html index 74c9b7a9..85e4a071 100755 --- a/index.html +++ b/index.html @@ -47,16 +47,6 @@ $("#e1").select2(); }); - - -

Placeholders

A placeholder value can be defined and will be displayed until a selection is made:


+

+
+

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

Optionally, a clear button (visible once a selection is made) is available to reset the select box back to the placeholder value.