On Jan 21, 2007, at 12:11 PM, Karl Swedberg wrote:

http://test.learningjquery.com/boundlink.htm

The first link uses this code:

$(document).ready(function() {
  $('a.keepbound').click(function() {
    $(this)
      .removeClass('keepbound')
      .next()
      .html($(this).next().html() + ' and repeat');
  });
});

The second uses this code:

$(document).ready(function() {
  $('a.losebinding').one('click',function() {
    $(this)
      .removeClass('losebinding')
      .next()
      .html($(this).next().html() + ' ever');
    return false;
  });
});


Okay, so I lost my mind for a minute. Doesn't affect my argument, but... The lines with .html() ? Ignore them. :)

They should be ...
    .append(' and repeat');

...and...
    .append(' ever');


--Karl
_________________
Karl Swedberg
www.englishrules.com
www.learningjquery.com


_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to