I have the following code but the click call function is loading before the form loads so its not dynamically updating the results, even though the drop down link option is being correctly selected.
$(window).load(function() {
$("a.optionLink:contains('"+ (document.referrer.split('/').pop()) +"')").click(); });