I am running following code on a link:-
$('#expertprofiles-category-filters .filterby > a').on("click", function () {
    // Figure out which category to show.
    var categoryId = $(this).attr('rel');
    // Hide the other subfilters.
    $("div.category-panel[rel!=" + categoryId + "]").slideUp(100);
    // Show the subfilters of the category.
    $("div.category-panel[rel=" + categoryId + "]").delay(100).slideDown(400);
});
This code runs fine but the problem is that I want to run this code on page load too, so that any one link is autaomatically selected.
I tried this:-
$("#expertprofiles-category-filters .filterby").find('a').trigger('click');
But it doesn't work ...
Thanks.
 
     
     
     
    