From b3611d24fca72f79e124ef6f16ae04dd880bad61 Mon Sep 17 00:00:00 2001 From: Patrick Filler Date: Mon, 12 Sep 2011 18:02:57 -0400 Subject: [PATCH] Add no results text support to docs --- index.html | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/index.html b/index.html index da6bdea..a8cf106 100644 --- a/index.html +++ b/index.html @@ -1195,6 +1195,15 @@ <select data-placeholder="Choose a country..." style="width:350px;" multiple class="chzn-select"">

Note: on single selects, the first element is assumed to be selected by the browser. To take advantage of the default text support, you will need to include a blank option as the first element of your select list.

+ +

No Results Text Support

+
+

Setting the "No results" search text is as easy as passing an option when you create Chosen:

+ + $(".chzn-select").chosen({no_results_text: "No results matched"}); // jQuery version
+ New Chosen($("chzn_select_field"),{no_results_text: "No results matched"}); // Prototype version +
+

Change / Update Events