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>, {
  <span class="hljs-attr">validator</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">name</span>) </span>{
    <span class="hljs-keyword">if</span> (!<span class="hljs-b