I'm looking for a way to automatically "click" an item when the page loads.
I've tried using
$("document").ready(function() {
$("ul.galleria li:first-child img").trigger('click');
});
but it doesn't seem to work? However, when I enter $("ul.galleria li:first-child img").trigger('click');
into Firebug's console and run the script, it works.
Can the trigger event be used on load?