Anyone see why this code might not work?

Anyone see why this code might not work?

this code works:

  1. $('#offer span').click(function(){    
  2.     var $divx = $('#offerbody').first();
  3.     $(this).html( $divx.is(':visible') ? ' [+] ' : ' [–] ');
  4.     $divx.slideToggle(); 
  5. });


this code does nothing (I was hoping it would make the div hidden):

  1. $(document).ready(function () {  
  2.   var $divx = $('#offerbody').first(); 
  3.       $divx.css('visibility','hidden'); 
  4.       $(this).html( $divx.is(':visible') ? ' [+] ' : ' [–] '); 
  5.           
  6. });