title: jQuery Select2 plugin: reset
body: <p>I'd like to be able to reset (<em>ie</em> empty values and setting placeholder like on a "fresh" one) a <em>Select2</em> dropdown. To be more precise, I have dependant dropdowns and clearing one should clear the depending ones. </p>
  
  <p>As an example, I could have country, region and city: clearing country should clear region and city.</p>
  
  <p>I tried several things but never was able to programmatically trigger the clear. The most obvious one was <code>$('#my-select').empty()</code> but the placeholder is not re-set and the selected value remains (even if it is not displayed).</p>
  
  <p>Using <code>$('#my-select').select2('data', {})</code> (or <code>$('#my-select').select2('data', null)</code>) is not yielding the desired result and getting the error:</p>
  
  <blockquote>
    <p>Error: Option 'data' is not allowed for Select2 when attached to a
     element.</p>
  </blockquote>
  
  <p>Is there an efficient solution for that?</p>