sNaN</span>(<span class="hljs-built_in">Number</span>(name))){
    <span class="hljs-keyword">return</span> <span class="hljs-string">"please enter text"</span>;
  }
};
<span class="hljs-keyword">var</span> tagInput = <span class="hljs-keyword">new</span> hx.TagInput(<span class="hljs-string">'#validated-tag-input'</span>, <span class="hljs-literal">undefined</span>, validator);</code></pre></div> </div></div><div class="qm-api-group qm-api-arg-group"><div class="qm-api-group-header qm-api-arg-group-header 