Problem with show()

Problem with show()

Hi there, 

New to this, so sorry if it's really silly.  My problem is as follows.  We have been given a list of anchors, some are html and some are pdf.  These are  grouped into a div which is to be hidden on document ready.  Then two buttons with a choice to show either html links only or pdf links only.  I can't get anything to show.  Code as follows:

  $(document).ready(function(){

    alert("Anchors hidden");

    $('#anchors').hide();

  });


  $(document).ready(function(){

    $('#htmlLinks').click(function(event){

      alert("html pressed");

      $("a[href$=html]").show();

    });

  });

The alert shows, but none of the links are listed.  I've tried loads of things.  What am i doing wrong?

Many thanks.