jQuery - Remove select list values
<p>I have some jQuery code that checks the current page title and adds it as the selected value to a select list. The code is:</p>

<pre><code>function displayVals() {
  var pgTitle = $('h1').val();
}

$('select').change(displayVals);
displayVals();
</code></pre>

<p>Is there a way to remove the other values from the select list that are not selected?</p>
