jquery on toggle only change the surrounding divs class
<p>when I click the link <strong>hide information</strong> link it shows <strong>Show information</strong> but it also changes the text on all the other boxes on the page, also when I click <strong>hide information</strong> it toggles the class <strong>test</strong> on the div class="revealBox" but it does it on all of the boxes, I would like to just keep it to the relevant box.</p>

<p>I know it will be something to do with $(this) I just don't know how to implement it.</p>

<p>here is my jquery</p>

<pre><code>$(document).ready(function() {
// choose text for the show/hide link - can contain HTML (e.g. an image)
var showText='Hide Information';
var hideText='Show Information';
var is_visible = false;
$('.collapseLink').append('&lt;span class="dottedBot"&gt;'+showText+'&lt;/span&gt;');
$('.revealBoxContents').show();
$('a.collapseLink').click(function() {
// switch visibility
is_visible = !is_visible;
// change the link depending on whether the element is shown or hidden
$(this).html( (!is_visible) ? showText : hideText);
// toggle the display - uncomment the next line for a basic "accordion" style
//$('.toggle').hide();$('a.toggleLink').html(showText);
$(this).parent().next('.revealBoxContents').slideToggle('slow');
// return false so any link destination is not followed
return false;
});
// toggle the bottom link
$('.collapseLink').click(function(){
     $(this).parents('.revealBoxContents').stop(true, true).slideToggle('slow');    
     $(".collapseLink").html( (!is_visible) ? showText : hideText);
    $(this).parent('.item').toggleClass('current');

}); 

$(".revealBoxTop a").click(function(){
        $(this).toggleClass("closed").next().slideToggle("slow");
        return false; //Prevent the browser jump to the link anchor
    });

    $('.revealBox a').click(function() {
        $(".revealBox").toggleClass("test");
    });


});
</code></pre>

<p>and here is the url</p>

<p><a href="http://satbulsara.com/NSJ-local/eqs1.htm" rel="nofollow">http://satbulsara.com/NSJ-local/eqs1.htm</a></p>
