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

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -