title: Select2 Initialization Callback
body: <p>Question related to <a href="http://ivaynberg.github.io/select2/" rel="nofollow">ivaynberg/select2</a> jQuery library.</p>
  
  <p>Is it possible to do a function callback once a select2 is initialized or rendered? If so, how?</p>
  
  <p>By looking at the documentation, the closest thing to doing this is using the event <code>select2-loaded</code>. However, it is fired when the query gets loaded but not select2 getting initialized.</p>
  
  <p>I'm using a <code>select</code> element.</p>
  
  <p>What I'm trying to achieve is adding a custom class to <code>.select2-chosen</code> upon initializing the form field based on the default value that's already set. There's no problem with changing the class of <code>.select2-chosen</code> on change of the select2 field.</p>