Strange, my posts are not showing up. Well here goes. I tried both methods, and both don' t work, could it be a biug with the Jquery version? I am using 1.1.3. Firebug does not state any errors and when I remove both values for the toggle function, it works.
Any other ideas? Thanks On Aug 27, 10:26 pm, "Benjamin Sterling" <[EMAIL PROTECTED]> wrote: > Ahh.... good catch Klaus! > > On 8/27/07, Klaus Hartl <[EMAIL PROTECTED]> wrote: > > > > > > > Benjamin Sterling wrote: > > > <script type="text/javascript"> > > > $(document).ready(function(){ > > > > $('#toggleTwo').click(function(){ > > > var $this = $(this); // add a reference to "this" relating to the A tag > > > $('#rubricTwo').toggle(function(){ > > > $this.html = "hide";} ,function(){$this.html ="show";} > > > );// end toggle > > > return false; > > > }); > > > }); // end document.ready > > > </script> > > > > "this" in "$(this).html" was referring to the div you were toggling > > > And that'll still not work. html is a method, not a property. Try: > > > $this.html('hide') etc. > > > --Klaus > > -- > Benjamin Sterlinghttp://www.KenzoMedia.comhttp://www.KenzoHosting.com