I have a link that is on the page and I want to click it programmatically when the page loads.
Something like this:
$(document).ready(function () {
// code to make the page think $('a.tagcloud-link') is clicked
});
The link is an AJAX call that displays the popular tags in Wordpress backend.
The function cannot easily be edited as it's dependent on many things.
So I want to trigger the AJAX link that calls the most popular tags on page load.
This will solve all my problems if it works.
That link is $('a.tagcloud-link')
Please, please help me on this I've spent hours pulling my hair out trying and failing to do this. Thank you.