Tagbox icon indicating copy to clipboard operation
Tagbox copied to clipboard

how to destroy tabbox

Open johnsoncr opened this issue 14 years ago • 1 comments

i need to Initial value dynamically,First I have setup tabbox on a div ,then modify its html content,the content was display as a normal html insteads of tags.I think i must destroy the tabbox first,but how to destroy?

johnsoncr avatar Dec 18 '11 06:12 johnsoncr

The best approach is not initializing tagbox before you assigned it's values.

For example, instead of:

$.ready(function(){
    $('.nicefields').tagbox();
    $.get('values.json',function(data.value){
       $('input.dynamic').val(data.value);
    });
});

You can:

$.ready(function(){
    $.get('values.json',function(data.value){
       $('input.dynamic').val(data.value);
       $('.nicefields').tagbox();
    });
});

irae avatar Jan 01 '12 23:01 irae