Search code examples
jqueryjquery-pluginstags

Read-only or disabled the jquery tags


I am using this http://xoxco.com/projects/code/tagsinput/ for my tags input.

But anyone know how to set the div of tags to be read-only mode or disable it?


Solution

  • try this:

    $('#tags').tagsInput({
            'interactive':false
            });
    

    if you want to disable the remove 'X'. use this below.

    $('.tagsinput').find('a').remove();