Thanks Olaf -- I discovered that fix whilst looking through the mailing list
archives.
According to the documentation though unbind() should work - and it is there
for this purpose!
rob
> I don't anything about unbind, i would try:
>
> function test()
> {
> $("#testButton").removeAttr("onclick").html("Tested already");
> }
--
Viele Grüße, Olaf
-------------------------------
[EMAIL PROTECTED]
http://olaf-bosch.de
www.akitafreund.de
-------------------------------
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
<
---------- Original Message ----------
FROM: Olaf Bosch <[EMAIL PROTECTED]>
TO: "jQuery Discussion." <[email protected]>
DATE: Mon, 12 Mar 2007 19:20:51 +0100
SUBJECT: Re: [jQuery] unbind() fails on handler specified in the HTML
Rob Desbois schrieb:
> It seems that unbind() will only remove event handlers that were attached to
> elements by jQuery. The following does not remove the event handler specified
> in the element's attributes.
I don't anything about unbind, i would try:
function test()
{
$("#testButton").removeAttr("onclick").html("Tested already");
}
--
Viele Grüße, Olaf
-------------------------------
[EMAIL PROTECTED]
http://olaf-bosch.de
www.akitafreund.de
-------------------------------
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/