javascript - Caching false for twitter bootstrap modal -
i have simple demo test bootstrap modal , json.
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
Post a Comment