Hi!
Im using the Mootools Accordion for a filmsite where I have categories of films and subcategories. However there is one category that has no subcats and the customer want the page with the films to be opened when clicking the toggler.
I tried with this:
accordion_films.togglers.each(function(toggler){
toggler.addEvent('click',function(){
// this.fireEvent('click');
alert("Toggler clicked");
});
});
…and it works, but I couldnt figure out how to check which toggler I clicked.
Is there a way to jump directly to an URL if the toggler has no element?
In that case I guess I have to assign a URL-string to the toggler somehow.
Please help a JS novice