.trigger() event not working correctly within $(document).ready
All the code in my $(document).ready function is processing correctly, except for the .trigger() statement below:
$('.content-btn:nth-child(3) a').triggerHandler('click');
I've tried triggerHandler() and trigger() both, and the command runs fine if called from another event handler—the click event for that <a> works as desired. Console shows no errors, and as I said the other lines in (document).ready work fine, it's just this one thing that doesn't seem to run.
Does anybody know why would this command not process on (document).ready?