title: Yii Select2 onSelect
body: <p>i use Yii and need to use <a href="http://www.yiiframework.com/extension/select2/" rel="nofollow">select2</a> extentions,
  here is my code</p>
  
  <pre><code>$this-&gt;widget('ext.select2.ESelect2',array(
                'name'=&gt;'listXXX',
                'data'=&gt;$list,
                'htmlOptions'=&gt;array(
                  'multiple'=&gt;'multiple',
                      'style'=&gt;'width:100%',
                ),
              ));
  </code></pre>
  
  <p>It works fine but ow to add event on select like</p>
  
  <pre><code>$().onselect(function(){
    alert(value)
  })
  </code></pre>