Search code examples
csstagstag-cloudtag-it

jquery Tag-it plugin's input field styling


html

<p> Tags:<input  name="tags" id="tags" /></p>

jquery

$('#tags').tagit( {tagLimit:3});

I want to control the size of input field,how can i do that ?


Solution

  • If you look at the dynamic HTML that is generated by the tag-it plugin, ul.tagit is the class assigned to the UL that is generated. So to set the width to 200px in your CSS set:

    ul.tagit {
        width: 200px;
    }