title: Bootstrap How to enable/disable input on option selected?
body: <p>I want to make form which say if Item is stockable then stock input will be enable, else stock input will be disabled.</p>
  
  <p>I am looking for bootstrap shortcut if any.</p>
  
  <p>Here is my code so far.</p>
  
  <pre><code>&lt;div class="form-group"&gt;
    &lt;label&gt;Is item stockable?&lt;/label&gt;
    &lt;select name="stockable" class="form-control"&gt;
      &lt;option value=""&gt;Choose&lt;/option&gt;
      &lt;option value="0"&gt;No, Item is not stockable&lt;/option&gt;
      &lt;option value="1"&gt;Yes, Item is stockable&lt;/option&gt;
    &lt;/select&gt;
  &lt;/div&gt;
  
  &lt;div class="form-group"&gt;
    &lt;label&gt;Stok&lt;/label&gt;
    &lt;input class="form-control" placeholder="" name="stock" type="text" disabled&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>If there is no bootstrap shortcut, I hope there is simple and easy way to do with jQuery.</p>