 <p>Instead of having multiple divs within the gray div, and checking whether a certain one is clicked or not, and then removing the clicked class, you could just use jQuery's <code>.html()</code> or <code>.text()</code> to set up the corresponding text within your gray div. Read about them more here: </p> <p><a href="http://api.jquery.com/html/" rel="nofollow">http://api.jquery.com/html/</a></p> <p><a href="http://api.jquery.com/text/" rel="nofollow">http://api.jquery.com/text/</a></p>