hay there,
i am new to JQuery,
so i wounder if there is a way to call JQuery method after button click from server side event,
here is what i really try to do,
the user will click on the login Button, and i will check his login name and his user name on the server side,
then i will call the JQuery function to execute slideToggle for a Div
is there a way to do such a thing
here is my JQuery function
Code:function LoginError() { $(document).ready(function() { $("LoginButton").click(function() { $(".DivError").slideToggle("slow"); return false; }); }); }but there is nothing happened,Code:bool loginFlag = false; if(!loginFlag){ this.Page.ClientScript.RegisterStartupScript(this.Page.GetType(), "startup", "<script type=\"text/javascript\">LoginError();</script>"); }
i think i am missing something
thanks alot.







Reply With Quote