From 92c5cdac9971edae1b4a9e0327ab5a2f82d027b3 Mon Sep 17 00:00:00 2001 From: Patrick Filler Date: Tue, 19 Jul 2011 17:33:17 -0400 Subject: [PATCH] Add examples for selected and deselected and describe default text behavior. --- example.html | 39 +++++++++++++++++++++++++++++++++++++++ example.jquery.html | 39 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 78 insertions(+) diff --git a/example.html b/example.html index b07febc..36d3a45 100644 --- a/example.html +++ b/example.html @@ -1159,6 +1159,45 @@ + +

Selected and Disabled Support

+
+

Chosen automatically highlights selected options and removes disabled options.

+
+ Single Select + +
+
+ Multiple Select with Groups + +
+
+ +

Default Text Support

+
+

Chosen automatically sets the default field text ("Choose a country...") by reading the select element's title value. If no title value is present, it will default to "Select Some Option" or "Select Some Options" depending on whether the select is single or multiple. You can change these elements in the plug-in js file as you see fit.

+ <select title="Choose a country..." style="width:350px;" multiple class="chzn-select"> +

Setup

Using Chosen is easy as can be.

diff --git a/example.jquery.html b/example.jquery.html index 7733951..eab1d4c 100644 --- a/example.jquery.html +++ b/example.jquery.html @@ -1160,6 +1160,45 @@ +

Selected and Disabled Support

+
+

Chosen automatically highlights selected options and removes disabled options.

+
+ Single Select + +
+
+ Multiple Select with Groups + +
+
+ +

Default Text Support

+
+

Chosen automatically sets the default field text ("Choose a country...") by reading the select element's title value. If no title value is present, it will default to "Select Some Option" or "Select Some Options" depending on whether the select is single or multiple. You can change these elements in the plug-in js file as you see fit.

+ <select title="Choose a country..." style="width:350px;" multiple class="chzn-select"> +
+

Setup

Using Chosen is easy as can be.