Light Tag Handler is a light jquery plugin, you can use it by import and js file only.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.



Light Tag Handler is a light jquery plugin, you can use it by import and js file only. User can use that with inputing a list of words and separate by comma at the text input box. For example, you can input something like : apply,mango,pear, (<- type them, but not copy and paste) to type. if you input something wrong and what to remove the existing tags, you can simply click on the tag to remove it. For demo, you can visit this link for a try:

Browser Supported

  • Internet Explorer 9 +
  • Google Chrome
  • FireFox

How to make it works ?

  1. Import Javascript file Import the jQuery file and lth_jquery.js (or the modified javascript file lth_jquery.min.js) first
<script type="text/javascript" src=""></script>
<script type="text/javascript" src="lth_jquery.js"></script>
  1. Import Javascript file Add a text input with class "lth_hidden" placing in a div tag with "lth_group" class.
<div class="lth_group">
    <input type="text" name="demo_3" class="lth_hidden" />

If your page get more than one text input box with tag handler, you can just copy a few more set of the html shown above and edit the name attribute value (for example: demo_3) to make it works. The html code of the demonstration example is shown below:

<div class="lth_group">
    <input type="text" name="demo_1" class="lth_hidden" value="1,2,3,4,5,6" />
<div class="lth_group">
    <input type="text" name="demo_2" class="lth_hidden" value="x,y,z" />
<div class="lth_group">
    <input type="text" name="demo_3" class="lth_hidden" />

Input string and output string example

Input string Output string Description
"aaa" "" Ouput nothing
"aaa," "aaa"
"a,b,c" "a,b"
"a,b,c," "a,b,c"
" ," "" Enter space and comma, get nothing and won't make any tag
",a, ,b,," "a,b" Would remove all empty tag in output string.
"apply, mango, pear," "apply,mango,pear" This plugin would remove all space next to commas.


25th,Nov2014 - Add instruction and demonstration page.
24th,Nov2014 - Ligth tag handler v1.0 release



[ ] []