How to programmatically click an element with MooTools?

The click event should fire when fireEvent('click') is called. See mootools.net/shell/8bbgn for a demo I just set up The checkbox doesn't get checked, as expected. To do this, you must set the checked property to true: $('someCheckbox').

SetProperty('checked', true).

The click event should fire when fireEvent('click') is called. See mootools.net/shell/8bbgn/ for a demo I just set up. The checkbox doesn't get checked, as expected.To do this, you must set the checked property to true: $('someCheckbox').

SetProperty('checked', true).

Hmm.. well that definitely proofs the concept. But for some reason it's not working in my code. The handlers just don't fire.

I'll have to debug some more... – infinity Mar 3 '10 at 22:08 Ok crap, between it not checking the box, and the event handler requiring the box to be checked to do anything, all lead me to believe this wasn't working as expected. But all good now thanks for double checking – infinity Mar 3 '10 at 22:25.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions