php - JQuery Load a page into a div and onload change content of second div -


I have a page with 2 divs called the menu and the other is called content Content div is a login page Loads when a user tries to log in, I call a script in the content device and if unsuccessful it reloads the login page.

If this is successful, then I use the header location to redirect to the login page. When this page loads in the content device, I have to change the menu div to a different menu. I have tried to use the following but there is no benefit. Is there any way that when the successful page content loads into a diva, it can automatically change the content of the menu div

It is that I have tried on the login page which is the content device The tag of that page loads in

onLoad = "$ ('div # menu'). Load ('include / log-in-menu-page.php')" < / P>

the second argument. The Load () function is a callback function. You are using it correctly and can then edit your menu element:

  $ ('# result'). Load ('include / log-in-menu-page.php', function) {If (loaded_correctly) $ ("div # menu"). Html ("Other Menu"); Other $ ("div # menu") Html ("Login Menu");});    

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -