title: How do i control the Slidetoggle function in jquery
body: <p>Hi Sorry for this noob question but here goes...i have a working slidetoggle on a test site of mine, however when i click the "slide" button, i would like that button to change to "close"..and then change back to "slide" when you click close...again sorry for the newbie question.. heres my code..</p>
  
  <pre><code>&lt;script&gt;
  /*#boxmove is my button*/
  /*.box1 is my sliding panel*/
  
   $('#boxmove').click(function() {
   $('.box1').slideToggle('slow', function(showOrHide) {
  
  });
  });
  &lt;/script&gt;
  </code></pre>
  
  <p>i know if i add the following i can get it to show the close on click...but i dont know how to "toggle" that text (maybe within a if/else statment?)...</p>
  
  <pre><code>&lt;script&gt;
  $('#boxmove').click(function() {
  $('.box1').slideToggle('slow', function(showOrHide) {
  document.getElementById('boxmove').innerHTML = 'close';          
  });
  });
  &lt;/script&gt;
  </code></pre>