span class="hljs-keyword">new</span> hx.TagInput(<span class="hljs-string">'#tag-input-2'</span>, classifier)
tagInput.add(<span class="hljs-string">'hello'</span>, <span class="hljs-string">'hx-positive'</span>)
tagInput.add(<span class="hljs-string">'goodbye'</span>, <span class="hljs-string">'hx-negative'</span>)
tagInput.add([<span class="hljs-string">'tag'</span>, <span class="hljs-string">'tag2'</span>])</code></pre></div></div></div></div></div></div> </div></div></div><div class="qm-docs-topic"><div