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

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

php - joomla get content in onBeforeCompileHead function -