Is there any more information on this. I was curious if unbind() would
work on an event set specifically in the HTML, so I thought I'd search
the list... Looks like it was worth the search.

Can anyone on the dev team (or just anyone who knows the answer) tell
us if unbind() is meant to work on events set specifically in the HTML
or if it just won't work for some reason and we need to use the
removeAttr() method?

Thanks,
Chris

On Mar 13, 4:49 am, [EMAIL PROTECTED] (Rob Desbois) wrote:
> Thanks Olaf -- I discovered that fix whilst looking through the mailing list 
> archives.
> According to the documentation thoughunbind() should work - and it is there 
> for this purpose!
>
> rob
>
> > I don't anything aboutunbind, i would try:
>
> >    function test()
> >    {
> >       $("#testButton").removeAttr("onclick").html("Tested already");
> >    }
>
> --
> Viele Gr??e, Olaf
>
> -------------------------------
> olaf.bosch at t-online.dehttp://olaf-bosch.dewww.akitafreund.de
> -------------------------------
>
> _______________________________________________
> jQuery mailing list
> discuss at jquery.comhttp://jquery.com/discuss/
>
> ______________________________________________________________________
> This email has been scanned by the MessageLabs Email Security System.
> For more information please visithttp://www.messagelabs.com/email
> ______________________________________________________________________
>
> <
>
> ---------- Original Message ----------
>
> FROM:      Olaf Bosch <olaf.bosch at t-online.de>
> TO:        "jQuery Discussion." <discuss at jquery.com>
> 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 thatunbind() 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 aboutunbind, i would try:
>
>    function test()
>    {
>       $("#testButton").removeAttr("onclick").html("Tested already");
>    }
>
> --
> Viele Gr??e, Olaf
>
> -------------------------------
> olaf.bosch at t-online.dehttp://olaf-bosch.dewww.akitafreund.de
> -------------------------------
>
> _______________________________________________
> jQuery mailing list
> discuss at jquery.comhttp://jquery.com/discuss/
>
> ______________________________________________________________________
> This email has been scanned by the MessageLabs Email Security System.
> For more information please visithttp://www.messagelabs.com/email
> ______________________________________________________________________
>
> ______________________________________________________________________
> This email has been scanned by the MessageLabs Email Security System.
> For more information please visithttp://www.messagelabs.com/email
> ______________________________________________________________________

Reply via email to