title: How to accept letters only in bootstrap tagsinput
body: <p>So I have this problem. I want bootstrap tagsinput to only accept letters, comma, and enter key. How to solve this problem? I use this bootstrap: <a href="https://bootstrap-tagsinput.github.io/bootstrap-tagsinput/examples/" rel="nofollow noreferrer">https://bootstrap-tagsinput.github.io/bootstrap-tagsinput/examples/</a></p>
  
  <p>HTML:</p>
  
  <pre><code>&lt;div class="form-group"&gt;
      &lt;div class="col-sm-4"&gt;
          &lt;input type="text" id="myinputs" class="form-control" name="skills" placeholder="Enter skill(s), separate each with a comma" data-role="tagsinput"&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>JavaScript:</p>
  
  <pre><code>$(document).ready(function() {
      $('#myinputs').keypress(function(event){
      var inputValue = event.charCode;
  
      if (!(inputValue &gt;= 65/*A*/ &amp;&amp; inputValue &lt;=90/*Z*/) &amp;&amp; !(inputValue &gt;=97/*a*/ &amp;&amp; inputValue &lt;= 122/*z*/) &amp;&amp; (inputValue != 44/*comma*/ &amp;&amp; inputValue != 13/*enter key*/)) {
          event.preventDefault();
      }
  
      });
  });
  </code></pre>
  
  <p>When there is no tagsinput, the javascript code is working. How to solve this problem?</p>