title: Use jQuery to Add Class to Input Element
body: <pre><code>&lt;input type="search" class="facetwp-search" value="" placeholder="filter keyword"&gt;
  </code></pre>
  
  <p>I want to use jQuery to add a class of 'form-control' in a WordPress theme</p>
  
  <p>Using this, it does not work:</p>
  
  <pre><code>jQuery(document).ready(function($) {
      $('facetwp-search').addClass('form-control');
  });
  </code></pre>
  
  <p>What is missing?</p>