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/

Reply via email to