Show a bootstrap modal if option is selected
<p>I have a form that contains a dropdown and some options:</p>

<pre><code>&lt;select name='type' id='type'&gt;
&lt;option value='suggestions' &gt;Suggestions&lt;/option&gt;
&lt;option value='inquiries' &gt;Inquiries&lt;/option&gt;
&lt;option value='donations' &gt;Donations&lt;/option&gt;
&lt;/select&gt;
</code></pre>

<p>I also have a Bootstrap modal window:</p>

<pre><code>    &lt;!-- Modal --&gt;
    &lt;div id="myModal" class="modal fade" role="dialog"&gt;
      &lt;div class="modal-dialog"&gt;

        &lt;!-- Modal content--&gt;
        &lt;div class="modal-content"&gt;
          &lt;div class="modal-header"&gt;
            &lt;button type="button" class="close" data-dismiss="modal"&gt;&amp;times;&lt;/button&gt;
            &lt;h4 class="modal-title"&gt;Modal Header&lt;/h4&gt;
          &lt;/div&gt;
          &lt;div class="modal-body"&gt;
            &lt;p&gt;Some text in the modal.&lt;/p&gt;
          &lt;/div&gt;
          &lt;div class="modal-footer"&gt;
            &lt;button type="button" class="btn btn-default" data-dismiss="modal"&gt;Close&lt;/button&gt;
          &lt;/div&gt;
        &lt;/div&gt;

      &lt;/div&gt;
    &lt;/div&gt;
</code></pre>

<p>I would like to show the Bootstrap modal if the value "donations" is selected.</p>

<p>I have tried doing this:</p>

<pre><code>$("#type").bind("change", function () {
    $('#myModal').modal('show')(this.value === 'donations'); 
}).change();
</code></pre>

<p>The modal is opened by default so I know I'm targeting the modal but I would only like to display when the "donations" option is selected.</p>

<p>Any ideas? </p>