Monday 15 February 2010

javascript - Back button is not working in the browser if multipage is done in jQuery -


I'm working on jQuery I want to display 2 divisions in the same page but only a single link on its link Will have to be displayed on click. And there is a condition to hide the second div and display the first division and when the link for the second device is clicked from the first page on the page then the page should be loaded from the other device. I got it through this code:

  & lt; Script type = "text / javascript" & gt; $ (Function () {$ ("# login"). Wrap (); $ ("# login"). Click (function (event) {$ ("# login"). Show (); $ (" Container ") .hide (); event.preventDefault ();});}); & Lt; / Script & gt;   

But when I use the above code: the back button in the browser fails to work. Please help or suggest suggestions in advance.

You have a missing end tag for the dock ready handler:

  & lt; Script type = "text / javascript" & gt; $ (Function () {$ ("# login"). Wrap (); $ ("# login"). Click (function (event) {$ ("# login"). Show (); $ (" Container ") .hide (); event.preventDefault ();});}); // & lt; ----------- Try putting this one to it & lt; / Script & gt;    

No comments:

Post a Comment