Using jQuery to change text on button

Using jQuery to change text on button

Hi guys,

I am a bit stuck on changing the text on my toggle button (see here).
Essentially, before it is clicked, the button's text says "Hide Summary". When clicked, Box 2 slides up and I've managed to change the text to "Show Summary". When I click the button again, Box 2 slides down, but the text remains as "Show Summary".

What am I doing wrong? Could you help me, please?

Many thanks in advance. I look forward to your reply.

Ess'iele
... seeing things.