1
0
mirror of synced 2024-11-22 21:16:10 +03:00

catch up to master. also added maximum input length example for #721

This commit is contained in:
Igor Vaynberg 2013-01-30 22:54:58 -08:00
parent 5b1e1de070
commit 4a3e0c5078
2 changed files with 24 additions and 1 deletions

View File

@ -663,6 +663,29 @@ $("#e11_2")
</pre> </pre>
</div> </div>
</article> </article>
<article class="row" id="maximum">
<script id="script_e23">
$(document).ready(function () {
$("#e23").select2({
tags:["red", "green", "blue"],
maximumInputLength: 10
});
});
</script>
<div class="span4">
<h3>Maximum Input Length</h3>
<p>Select2 can be set a limit on the number of characters that can be entered per tag.</p>
<p><input type="hidden" id="e23" style="width:300px" value="brown, red, green"/></p>
<p>You would not be able to enter any input of more than 10 characters long.</p>
</div>
<div class="span8">
<h3>Example Code</h3>
<pre class="prettyprint linenums" id="code_e23">
</pre>
</div>
</article>
<article class="row" id="token"> <article class="row" id="token">
<script id="script_e20"> <script id="script_e20">
$(document).ready(function () { $(document).ready(function () {

@ -1 +1 @@
Subproject commit c270d3e4a376bb6d2e05eacf157536b2cf75c7f0 Subproject commit 995d0c3bf4fa1d423c61e7ff5c713dd13fb3d253