Code:
<asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server" EnablePageMethods="true" EnablePartialRendering="true">
</asp:ToolkitScriptManager>  <script language="javascript" type="text/javascript">
    $(function () {
        $(".mnuMainMenu_SkipLink a").each(function (index) 
                        { 
                            $(this).click(ClearCache(););
                        }
                     );
                     
                  }
    );
    
    function ClearCache() {
        PageMethods.ClearSearchCache();
    }
</script>
I am trying to make jquery find my asp.net menu and add a click event on each one that will call some server side script.

However I keep getting the message Object expected. I am unable to tell whether it cant find my page method or my jquery is wrong?