events.html 815 B

12345678910111213141516171819202122232425262728
  1. <h2 id="events-public">
  2. Public events
  3. </h2>
  4. <p>
  5. All public events are relayed using the jQuery event system, and they are
  6. triggered on the <code>&lt;select&gt;</code> element that Select2 is
  7. attached to. You can attach to them using the
  8. <a href="https://api.jquery.com/on/"><code>.on</code> method</a> provided
  9. by jQuery.
  10. </p>
  11. <h2 id="events-internal">
  12. Internal events
  13. </h2>
  14. <p>
  15. Select2 triggers internal events using its own internal event system,
  16. which allows adapters to communicate with each other. These events are not
  17. accessible through the jQuery event system.
  18. </p>
  19. <p>
  20. You can find more information on the public events triggered by individual
  21. adapters in <a href="#adapters">the individual adapter documentation</a>.
  22. </p>
  23. </section>