upender
upender

Reputation: 109

Clear the content of panel

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

Answers (1)

PapaSmurf
PapaSmurf

Reputation: 1035

If your using jQuery you can use $('#panel').empty() to clear the content within.

Upvotes: 1

Related Questions