text-input.html 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. <section>
  2. <h2 id="input-fallback">
  3. Compatibility with <code>&lt;input type="text" /&gt;</code>
  4. </h2>
  5. <p class="alert alert-warning">
  6. <a href="announcements-4.0.html#hidden-input" class="alert-link">Deprecated in Select2 4.0.</a>
  7. It is now encouraged to use the <code>&lt;select&gt;</code> tag instead.
  8. </p>
  9. <p>
  10. In past versions of Select2, a <code>&lt;select&gt;</code> element could
  11. only be used with a limited subset of options. An
  12. <code>&lt;input type="hidden" /&gt;</code> was required instead, which did
  13. not allow for a graceful fallback for users who did not have JavaScript
  14. enabled. Select2 now supports the <code>&lt;select&gt;</code> element for
  15. all options, so it is no longer required to use <code>&lt;input /&gt;</code>
  16. elements with Select2.
  17. </p>
  18. <dl class="dl-horizontal">
  19. <dt>Adapter</dt>
  20. <dd>
  21. <code title="select2/data/base">DataAdapter</code>
  22. </dd>
  23. <dt>Decorator</dt>
  24. <dd>
  25. <code title="select2/compat/inputData">InputData</code>
  26. </dd>
  27. </dl>
  28. </section>