javascript - jQCloud - how to clear it? -
i'm using script showing tag-cloud here.
var word_list = gettags(); $("#example").jqcloud(word_list); <div id='example'></div>
i'm loading tags dynamically different sources clicking on button. first time shows the tags properly, next time "adds them up" tags there. need clear or refresh tag-cloud somehow, tried this:
$('#example').val('');
and there no luck.
is there way @ all?
you may try using this:
$('#example').html("");
the .val method used or set values of form elements such input, select , textarea. won't set value of div trying to.
Comments
Post a Comment