title: Yii2: select2 with jQuery event doesn't work
body: <p>I am trying to trigger a function when a value of a Select2 is selected. The select2 has name of colors.</p>
  
  <pre><code>$('#idColor').on('select2:selecting', function(e) {
      console.log($('#idColor').val());
  });
  </code></pre>
  
  <p>Example: I select the option Blue and nothing happened. Then I select the color Red and the console shows Blue.</p>
  
  <p>The Select2 widget is in a Yii2 project created by another person. So I couldn't find its documentation web.</p>
  
  <p><a href="https://i.stack.imgur.com/XavCy.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/XavCy.png" alt="Select2 example"></a></p>
  
  <p>Maybe I have a similar problem to this, but this person use Backbone.js: <a href="https://stackoverflow.com/questions/12795313/click-and-change-event-not-working-for-jquery-select2-options">Click and Change event not working for jquery-select2 options</a></p>
  
  <p>I am learning jQuery, so maybe I am doing something wrong.</p>