|
@@ -1588,6 +1588,38 @@ $.fn.select2.defaults.set("theme", "classic");
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
</section>
|
|
|
|
+
|
|
|
|
+ <h2 id="input-fallback">
|
|
|
|
+ Compatibility with <code><input type="text" /></code>
|
|
|
|
+ </h2>
|
|
|
|
+
|
|
|
|
+ <p class="alert alert-warning">
|
|
|
|
+ <a href="announcements-4.0.html#hidden-input" class="alert-link">Deprecated in Select2 4.0.</a>
|
|
|
|
+ It is now encouraged to use the <code><select></code> tag instead.
|
|
|
|
+ </p>
|
|
|
|
+
|
|
|
|
+ <p>
|
|
|
|
+ In past versions of Select2, a <code><select></code> element could
|
|
|
|
+ only be used with a limited subset of options. An
|
|
|
|
+ <code><input type="hidden" /></code> was required instead, which did
|
|
|
|
+ not allow for a graceful fallback for users who did not have JavaScript
|
|
|
|
+ enabled. Select2 now supports the <code><select></code> element for
|
|
|
|
+ all options, so it is no longer required to use <code><input /></code>
|
|
|
|
+ elements with Select2.
|
|
|
|
+ </p>
|
|
|
|
+
|
|
|
|
+ <dl class="dl-horizontal">
|
|
|
|
+ <dt>Adapter</dt>
|
|
|
|
+ <dd>
|
|
|
|
+ <code title="select2/data/base">DataAdapter</code>
|
|
|
|
+ </dd>
|
|
|
|
+
|
|
|
|
+ <dt>Decorator</dt>
|
|
|
|
+ <dd>
|
|
|
|
+ <code title="select2/compat/inputData">InputData</code>
|
|
|
|
+ </dd>
|
|
|
|
+ </dl>
|
|
|
|
+</section>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<script type="text/javascript">
|
|
<script type="text/javascript">
|