[jQuery] Re: toggle content link (beginner)

2007-06-28 Thread tlob
what do you think about that: $(#soundme).toggle(function(){ $(this).empty().append(sound on); },function(){ $(this).empty().append(sound off);

[jQuery] Re: toggle content link (beginner)

2007-06-28 Thread Karl Swedberg
Since you're just changing the text of the link, you could do this: $('#soundme').toggle(function() { $(this).text('sound on'); // do other stuff return false; }, function() { $(this).text('sound off'); // do other stuff return false; }); --Karl _ Karl Swedberg