jquery - Just refresh the div after login or logout -


i working on web project. in layout page, have div login/logout

<div id="login"> @if (websecurity.isauthenticated) {     //// show id , logout option } else {     <form method="post">     //// input boxes id , pass     <input type="submit" value="log in" id="submit"/>     </form> } </div> 

so, after user login, want refresh div without reload whole page, , div show id , logout option.

i searched online, , people use .reload ajax. in cases, there new stuff put in .load(), , case want refresh div without new stuff. can use .load() without put in () div refreshed?

thanks! zeyu


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

c++ - End of file on pipe magic during open -