bind an onchabge event to the show/hide advanced button usingg YUI

bind an onchabge event to the show/hide advanced button usingg YUI

by Raphael Goldman -
Number of replies: 2

Hi,

How can I do that using the class = "showadvancedbtn"

Thanks.

Raphael

Average of ratings: -
In reply to Raphael Goldman

Re: bind an onchabge event to the show/hide advanced button usingg YUI

by Andrew Lyons -
Picture of Core developers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers Picture of Testers

Hi Raphael,

I'd recommend reading the YUI documentation, but you will likely want to listen for the click on the showadvancedbtn using an event delegation:

Y.delegate('click', function(event) { Y.log(event); }, Y.config.doc, '.showadvancedbtn', this);

Andrew

In reply to Andrew Lyons

תשובה ל: Re: bind an onchabge event to the show/hide advanced button usingg YUI

by Raphael Goldman -

Thanks!

that helped me a lot