disabled-results.html 870 B

1234567891011121314151617181920212223242526272829
  1. <section>
  2. <h1 id="disabled-results">Disabled results</h1>
  3. <p>
  4. Select2 will correctly handle disabled results, both with data coming
  5. from a standard select (when the <code>disabled</code> attribute is set)
  6. and from remote sources, where the object has
  7. <code>disabled: true</code> set.
  8. </p>
  9. <div class="s2-example">
  10. <p>
  11. <select class="js-example-disabled-results form-control">
  12. <option value="one">First</option>
  13. <option value="two" disabled="disabled">Second (disabled)</option>
  14. <option value="three">Third</option>
  15. </select>
  16. </p>
  17. </div>
  18. {% highlight html linenos %}
  19. <select class="js-example-disabled-results">
  20. <option value="one">First</option>
  21. <option value="two" disabled="disabled">Second (disabled)</option>
  22. <option value="three">Third</option>
  23. </select>
  24. {% endhighlight %}
  25. </section>