Reference this post:
http://www.nabble.com/%24%28%27a%27%29-0-.click%28%29-not-working--tf2896856.html#a8092696
Cheers,
-Jonathan
On 1/5/07, Sean O <[EMAIL PROTECTED]> wrote:
Hi,
I'm trying to simulate a click of a link on my page. (to open a jpg in
greybox on page load)
How do I do it?
I tried click(), but it doesn't seem to do anything.
$(function() {
$("#imglink").css("background","yellow").click();
});
<a rel="gb_image[]" href="myimg.jpg" id="imglink">My Image</a>
The background changes (for testing), but the click event is not
triggered.
Tips?
Thanks,
________
SEAN O
--
View this message in context:
http://www.nabble.com/Any-way-to-trigger-a-click-by-script--tf2926200.html#a8180306
Sent from the JQuery mailing list archive at Nabble.com.
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/