title: Add acf field variable to jquery
body: <p>I created field in Advanced custom fields:</p>
  
  <pre><code>&lt;div class="field_class"&gt;
    &lt;?php if( get_field('field') ): ?&gt;
       &lt;h4&gt;&lt;?php the_field('field'); ?&gt;&lt;/h4&gt;
    &lt;?php endif; ?&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>and I want to add acf field to jquery:</p>
  
  <pre><code>jQuery(document).ready(function($){
  $('.content-wrapper').addClass('field_class');
  
  });
  </code></pre>
  
  <p>I know that I must add variable to jquery like:  </p>
  
  <pre><code>var field = "&lt;?php the_field('field'); ?&gt;" ;
  </code></pre>
  
  <p>but don't know how this variable add to addClass: addClass('field_class') to grab all content (class and variable).</p>
  
  <p>Thanks for help,</p>