how to add a class to the input element generated by bootstrap-tagsinput
<p>I tried the solution suggested in <a href="https://stackoverflow.com/questions/31231752/bootstrap-tags-input-adding-a-class-to-the-generated-input">the other post</a>:</p>

<pre><code>$("input[name='tags']").tagsinput('input').addClass('form-control');
</code></pre>

<p>But I got:</p>

<blockquote>
  <p>Uncaught TypeError: $(...).tagsinput(...).addClass is not a function</p>
</blockquote>

<p>I also tied:</p>

<pre><code>$("input[name='tags']").tagsinput({
    tagClass: 'form-control'
});
</code></pre>

<p>But it still couldn't add a <code>form-control</code></p>

<p>Any thoughts? Thanks.</p>