Add no results text support to docs

gh-pages
Patrick Filler 2011-09-12 18:02:57 -04:00
parent cd59bcbd77
commit b3611d24fc
1 changed files with 9 additions and 0 deletions

View File

@ -1195,6 +1195,15 @@
<code>&lt;select data-placeholder="Choose a country..." style="width:350px;" multiple class="chzn-select""&gt;</code>
<p style="margin-top: 1em;"><strong>Note:</strong> 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.</p>
</div>
<h2>No Results Text Support</h2>
<div class="side-by-side clearfix">
<p>Setting the "No results" search text is as easy as passing an option when you create Chosen:</p>
<code>
$(".chzn-select").chosen({no_results_text: "No results matched"}); // jQuery version<br />
New Chosen($("chzn_select_field"),{no_results_text: "No results matched"}); // Prototype version
</code>
</div>
<h2>Change / Update Events</h2>
<div class="side-by-side clearfix">