Admin Forum:Censoring spoiler with jQuery

Below is the coding to show/hide text with spoilers: I got the text to appear on clicking, but on second click it doesn't get back, despite. What's wrong with this code and how can I fix it?