There is a semitransparent overlay div
covering document which destroys on click, but I need somehow to trigger onlick events of the element beneath overlay at the same time. Is there a way to click on specific coordinates with JS, or maybe determine underlying element having absolute x and y positions? Thanks.
views:
68answers:
2
+1
A:
If you can find out what is the element given the coordinates, you can always trigger the onclick handler yourself with jQuery using the .click() function.
Francisco Soto
2010-07-16 20:59:28
Sure, but how to determine which element's events I have to trigger?
Dmitry Gladkov
2010-07-16 21:06:55
+1
A:
Nick has posted a link to awesome answer on how to get elements by x and y but unfortunately it's a comment so I can't accept it. :(
Dmitry Gladkov
2010-07-16 21:36:08
It might return the semi-transparent div. May be excluding semi-transparent will do the work for you.
Biswanath
2010-07-16 21:40:29