Here is the code I use to call click() on all Exapnd/Collapse image in SharePoint

    $("img[src*=/_layouts/images/plus.gif]").parent().click();
    $("img[src*=/_layouts/images/minus.gif]").parent().click();
Advertisements