Click a Gallery Link on Page Load

I have a new development up and running and want to click a link in the gallery so that the proper images load when the page is loaded.

At the Top of the page, under the black bar you will see all the categories, I want to be able to click these on page load... any scripts for this? I have tried everything!!!

I am trying to create a new HTML page for each item in the list and when I do that it shows all items until I click the category name, I want to do this automatically by triggering a click event.
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

fadercreepAuthor Commented:
Anyone, Anyone Buler ?
Rainer JeschorCommented:
the following code should do the trick:
$(document).ready(function() {
	$("ul.portfolio-categ").find("li").each(function() {
		$( this ).find("a").click();

Open in new window

But I still do not understand why you want to run all that click events - this will definitely disturb your visitors.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
fadercreepAuthor Commented:
Actually I just want to run "ONE" click event. Which ever category page they selected from the menu. In the case of this example we could use - jigs,html but if I open that page, the gallery list defaults to the 'all' category. So I would like to trigger the click event "Kreg Jigs" I think I can modify the above code to do that correct?

So just so we are clear all I want to know is after page load, How do I click one of the items in the Gallery list at the top, like the "Kreg Jigs" link.
fadercreepAuthor Commented:
Tried this code in the head tag and it does trigger a click event, however the gallery dose NOT display the right product items? Any Thoughts ?

$(document).ready(function() {
	$("ul.portfolio-categ").find("li").each(function() {

Open in new window

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.