title: Disable text input based on select option value
body: <p>In following code I want to have disabled text input if select option value is 0. What's wrong?</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>$('select').change(function() {
    if ($(this).val() == 0)) (".xyz").attr('disabled',true);
  }).change();</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;select id="type"&gt;
  &lt;option value="0"&gt;&lt;/option&gt;
  &lt;option value="1"&gt;1&lt;/option&gt;
  &lt;option value="2"&gt;2&lt;/option&gt;
  &lt;/select&gt;
  &lt;br /&gt;
  &lt;input type="text" class="xyz" name="xyz" /&gt;</code></pre>
  </div>
  </div>
  </p>