PDA

View Full Version : Simulate click on DOM element



dvuja2
9 Nov 2009, 6:51 AM
How do I simulate a click on a DOM element?

something like...

Ext.get('myElementID').click();

The element I'm trying to click is <img>.

dvuja2
9 Nov 2009, 7:28 AM
Actually, I'm trying to automatically show the datefield's calendar by simulating a click on the <IMG> next to it (little calendar icon).

Is this possible? Is there some other way to do this?

Animal
9 Nov 2009, 7:34 AM
Call the onTriggerClick method?

dvuja2
11 Nov 2009, 5:02 AM
It worked, thanks.