$(document).ready(function() { // event listeners; hiding elements $(".share_email").hide(); // hide archive entries $("div.archive_year ul li ul").hide(); // $(".shareOn").hide(); $(".moreText").hide(); // displays list of months for specific year // $(".year").click(function() { // $(this).toggleClass("activeYear"); // $(".archive_year").slideToggle(400); // return false; // }); // displays posts for a particular month // $("#march2009").click(function() { // $(this).toggleClass("active"); // $(".postsMarch").slideToggle(400); // return false; // }); // displays posts for a particular month // $("#feb2009").click(function() { // $(this).toggleClass("open"); // $(".postsFeb").slideToggle(400); // return false; // }); // displays posts for a particular month // $("#jan2009").click(function() { // $(this).toggleClass("open"); // $(".postsJan").slideToggle(400); // return false; // }); // displays more text in a user's comment // added a display:inline to the span that surrounds the text $(".more").click(function() { $(".more").hide(); $(".moreText").css("display","inline").show(); return false; }); // hides text in a user's comment $(".less").click(function() { $(".moreText").hide(); $(".more").show(); return false; }); });