Clearing select from drop down
<p>I have encountered a problem with my code to clear a select:</p>

<pre><code>$('select').children(':selected').removeProp('selected');
</code></pre>

<p>I bind a change handler like this:</p>

<pre><code>$('#categories').on('change', function(event) {
   var category = $(this).children("option:selected").text();
   ...
});
</code></pre>

<p>This works except if I select again the option from where the selected property was removed <code>category = ''</code>.</p>

<p>I'm certainly do something wrong. Could someone please shed some light on it?</p>
