 class="qm-html-paragraph"><script>@description
  new hx.TagInput('#validated-tag-input', {
    validator: function(name) {
      if (!isNaN(Number(name))){
        return "please enter text";
      }
    };
  });</script> </div><div class="qm-html-paragraph"><div class="qm-code-highlight-codeblock"><pre><code class="qm-code-font"><span class="hljs-comment">// example: only allow non number inputs</span>
<span class="hljs-keyword">new</span> hx.TagInput(<span class="hljs-string">'#validated-tag-input'</span