Jquery hasClass show
<p>I am about to make a menu in drupal with jquery, I need the link to when it has class active it need to be shown.</p>

<pre><code>(function ($) {
 $(document).ready(function() {
  $('.region-sidebar-first .block-menu ul.menu').children('li').children('a').hasClass('active').hide();
  $('.region-sidebar-first .block-menu h2').click(function() {
   $(this).parent().siblings().children().next().children().slideUp(400);           
   $(this).next('.content').children('.menu').slideDown(400);
  });
 });
}(jQuery));
</code></pre>
