1
0
mirror of synced 2025-02-09 16:49:24 +03:00

Added small example of attaching event listeners

This closes https://github.com/select2/select2/pull/4255
This commit is contained in:
Kevin Brown 2016-03-27 14:47:06 -04:00
parent 962fd63a67
commit 84d6b5d840

View File

@ -50,6 +50,12 @@
How can I attach listeners for these events?
</h3>
{% highlight js linenos %}
$('select').on('select2:select', function (evt) {
// Do something
});
{% endhighlight %}
{% include options/not-written.html %}
<h3>