Reputation: 109
I want to clear the content of panel. This is my code to create panel.
directionsDisplay.setPanel(document.getElementById('panel'));
Now when I press the back button and again content of panel is not remove and new content append the previous content.
Please help me. Thanks in advance.
Upvotes: 0
Views: 1700
Reputation: 1035
If your using jQuery you can use $('#panel').empty()
to clear the content within.
Upvotes: 1