 var tagInput = new hx.TagInput('#validated-tag-input', undefined, validator);</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">var</span> validator = <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-built_in">i