 <p>Why not use the shorthand method .click? </p> <p><a href="http://api.jquery.com/click/" rel="nofollow">http://api.jquery.com/click/</a></p> <p>Then, try the following:</p> <pre><code>$(".showornot", $(this).parent()).slideToggle(400); </code></pre> <p>Working proof: <a href="http://jsfiddle.net/dg2z67hx/3/" rel="nofollow">http://jsfiddle.net/dg2z67hx/3/</a></p> <p>What I am doing in this fiddle is selecting the element with the class .showornot INSIDE the button's parent element.</p> <p>Please note that <strong>you are missing a starting div tag from the code you posted</strong>, I presume it's the one classed as 'network-container', that makes it a little harder for people to answer.</p>