$(".reply-btn").click(function(ev){$(ev.currentTarget).toggleClass("reply-show").parent().siblings(".comment").toggle();}); $(location.hash).parents(".comment").find(".reply-btn").click(); $(window).scrollTop($(location.hash).position().top);