jquery undisable list onselect
<p>I have a list of options dependent on what is selected in the first option. How can I make it so that after they select location the second options only displays options avaliable to that location?</p>

<p>Right now I have a bunch of</p>

<pre><code>&lt;option class=2 DISABLED&gt;Blah&lt;/option&gt;
</code></pre>

<p>jQuery Code</p>

<pre><code>$(document).ready(function() {
  $('#location').change(function() {
    $(.$(this).val()).removeAttr('disabled');
  });
});
</code></pre>

<p>The value of the location option is = to the class of the second. But it doesn't seem to work?</p>
