Is there a quicker way of writing this simple jQuery command?
<p>I would prefer to use .slideToggle and 3 lines of code but not sure how to get the script to 'refresh' itself after it's slid open and return to it's orginal state when it's slid back up (it doesn't slide back up when I use 3 lines and a .slideToggle). Sorry for the bad technical explanation. </p>

<pre><code>$('#showHide').hide();

$('a#slickShow').click(function() {
    $('#showHide').show(400);
    $('.archiveText2 a').replaceWith('&lt;a id="slickShow" href="#"&gt;View less Blog Entries&lt;span class="archiveLink2"&gt;{&lt;/span&gt;&lt;/a&gt;');

$('a#slickShow').click(function() {
    $('#showHide').hide(400);
    $('.archiveText2 a').replaceWith('&lt;a id="slickShow" href="#"&gt;View more Blog Entries&lt;span class="archiveLink2"&gt;}&lt;/span&gt;&lt;/a&gt;'); 
</code></pre>

<p><strong>This is the code that eventually got it working</strong></p>

<pre><code>$('#showHide').hide();

$('#slickShow').click(function(){

    $('#showHide').slideToggle(400, function() {
        if ($('#showHide').is(':visible')){
          $('.archiveText2 a').html('View less Blog Entries&lt;span class="archiveLink2"&gt;{&lt;/span&gt;');

        }
        else{
          $('.archiveText2 a').html('View more Blog Entries&lt;span class="archiveLink2"&gt;}&lt;/span&gt;'); 
        }

    }); 

    return false; 
});
</code></pre>
