javascript - Caching false for twitter bootstrap modal -


i have simple demo test bootstrap modal , json.

code

when click button "show", loads json , parses it. , button "launch demo modal" shows parsed json.

but when click button "show" again, previous list in modal not removed , appends current list increasing size of modal.

i want refresh cache everytime click "show" button.

please help.

you have use .html() instead of .append() . .append() adds other list modal body, .html(list) instead, changes content of modal body you're manipulating. otherwise remove .id1 content , refill it, not such way do.


Comments

Popular posts from this blog

How to mention the localhost in android -

php - Calling a template part from a post -

c# - String.format() DateTime With Arabic culture -