change text on show/hide
<p>I have a some content which I want show/hide using jquery.
Till now using below code:</p>

<pre><code>$(document).on("click",".class", function(){
     $(this).next().slideToggle("fast"); 
      });



&lt;div class="class"  Title="Click to view/hide all" id="flip"&gt;View &amp;#9660;&lt;/div&gt;
      &lt;div class="class" id="panel"&gt;&lt;table&gt;
      Hello!! 
      &lt;/table&gt;
      &lt;/div&gt;
</code></pre>

<p>I have many such view <code>div</code> created and are working inside for loop.
      My show/hide content is working fine, but I want to change text(on button) as 'show' and 'hide' whenver user clicks.
      Please help.</p>
