[jQuery] Re: function executing twice

2009-03-05 Thread inertiahz
to it. One option is to unbind any existing onclick events > > and then re-bind it.: > > > $('a[rel="lesson"]').unbind('click').click(...) > > > On Mar 4, 5:42 am, inertiahz wrote: > > > > Hi there, > > > > Just getting start

[jQuery] function executing twice

2009-03-04 Thread inertiahz
Hi there, Just getting started with javascript and jquery on a site im developing, however i cant figure a way around a function executing repeatedly. I have some code to open all links with rel='lesson' in a new window $('a[rel="lesson"]').click( function() { window.open(this.href, "_blank", "c