title: Filter cards in Bootstrap 4 with jQuery
body: <p>I am attempting to create a page that is populated by many cards, using bootstrap 4's new card component. </p>
  
  <p>I want to create a search bar, that when searched, filters out cards whose titles don't match the search query. </p>
  
  <p>Here is a plunker of what I have in mind. <a href="https://embed.plnkr.co/2oZIRIbXoXJauiVtEzLq/" rel="noreferrer">Plunker</a></p>
  
  <p>I would like the cards to get something like a <code>display: none</code>, or <code>opacity:0</code> if they don't match. </p>
  
  <p>I currently am attempting to write a function that <code>onChange</code> of the search bar does this. I'll post if I can get it figured out.</p>
  
  <p>I've tried to use the built in snippet feature as well.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="true">
  <div class="snippet-code snippet-currently-hidden">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js"&gt;&lt;/script&gt;
  &lt;script src="https://cdn.rawgit.com/twbs/bootstrap/v4-dev/dist/js/bootstrap.js"&gt;&lt;/script&gt;
  &lt;link href="https://cdn.rawgit.com/twbs/bootstrap/v4-dev/dist/css/bootstrap.css" rel="stylesheet" /&gt;
  
  &lt;div class="container"&gt;
    &lt;div class="row"&gt;
      &lt;div class="col-sm-4"&gt;
        &lt;input type="search" placeholder="Search......" name="search" class="searchbox-input" onkeyup="buttonUp();" required&gt;
      &lt;/div&gt;
      &lt;div class="col-sm-4"&gt;
      &lt;/div&gt;
      &lt;div class="col-sm-4"&gt;
      &lt;/div&gt;
    &lt;/div&gt;
    &lt;div class="card-columns"&gt;
      &lt;div class="card"&gt;
        &lt;div class="card-block"&gt;
          &lt;h4 class="card-title"&gt;Card title that wraps to a new line&lt;/h4&gt;
          &lt;p class="card-text"&gt;This is a longer card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.&lt;/p&gt;
        &lt;/div&gt;
      &lt;/div&gt;
      &lt;div class="card card-block"&gt;
        &lt;blockquote class="card-blockquote"&gt;
          &lt;p&gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.&lt;/p&gt;
          &lt;footer&gt;
            &lt;small class="text-muted"&gt;
            Someone famous in &lt;cite title="Source Title"&gt;Source Title&lt;/cite&gt;
          &lt;/small&gt;
          &lt;/footer&gt;
        &lt;/blockquote&gt;
      &lt;/div&gt;
      &lt;div class="card"&gt;
        &lt;div class="card-block"&gt;
          &lt;h4 class="card-title"&gt;Card title&lt;/h4&gt;
          &lt;p class="card-text"&gt;This card has supporting text below as a natural lead-in to additional content.&lt;/p&gt;
          &lt;p class="card-text"&gt;&lt;small class="text-muted"&gt;Last updated 3 mins ago&lt;/small&gt;
          &lt;/p&gt;
        &lt;/div&gt;
      &lt;/div&gt;
      &lt;div class="card card-block card-inverse card-primary text-xs-center"&gt;
        &lt;blockquote class="card-blockquote"&gt;
          &lt;p&gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat.&lt;/p&gt;
          &lt;footer&gt;
            &lt;small&gt;
            Someone famous in &lt;cite title="Source Title"&gt;Source Title&lt;/cite&gt;
          &lt;/small&gt;
          &lt;/footer&gt;
        &lt;/blockquote&gt;
      &lt;/div&gt;
      &lt;div class="card card-block text-xs-center"&gt;
        &lt;h4 class="card-title"&gt;Card title&lt;/h4&gt;
        &lt;p class="card-text"&gt;This card has supporting text below as a natural lead-in to additional content.&lt;/p&gt;
        &lt;p class="card-text"&gt;&lt;small class="text-muted"&gt;Last updated 3 mins ago&lt;/small&gt;
        &lt;/p&gt;
      &lt;/div&gt;
      &lt;div class="card"&gt;
      &lt;/div&gt;
      &lt;div class="card card-block text-xs-right"&gt;
        &lt;blockquote class="card-blockquote"&gt;
          &lt;p&gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.&lt;/p&gt;
          &lt;footer&gt;
            &lt;small class="text-muted"&gt;
            Someone famous in &lt;cite title="Source Title"&gt;Source Title&lt;/cite&gt;
          &lt;/small&gt;
          &lt;/footer&gt;
        &lt;/blockquote&gt;
      &lt;/div&gt;
      &lt;div class="card card-block"&gt;
        &lt;h4 class="card-title"&gt;Card title&lt;/h4&gt;
        &lt;p class="card-text"&gt;This is a wider card with supporting text below as a natural lead-in to additional content. This card has even longer content than the first to show that equal height action.&lt;/p&gt;
        &lt;p class="card-text"&gt;&lt;small class="text-muted"&gt;Last updated 3 mins ago&lt;/small&gt;
        &lt;/p&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>