jQuery - Displaying text when hidden changes when shown
<p>I have a button that has text on it ... its formatted like so</p>

<pre><code>&lt;a href="" id="refl" class="button"&gt;&lt;span&gt;VIEW ALL CASES&lt;/span&gt;&lt;/a&gt;
</code></pre>

<p>I have some jQuery at the moment that toggles a div when "refl" is clicked.</p>

<p>How would i change the text VIEW ALL CASES to say "VIEW ALL CASES" when the div is hidden, but display "CLOSE ALL CASES" when the div is showing?</p>

<p>Cheers,</p>
