I want to disable the working of a jQuery function. In my page I have a login form. After login success, it disappears and the main page is shown. But if I refresh the page, it again shows the main form. It is because all of my contents are in 1 .html file. I made all of them display: none;
and after login jQuery runs the .show()
method.
Is there any way to disable this function after calling? Or should I add all my content to another .html file and then after login show in page?
Or how can I use header("Location: main2.html"); function in jQuery?For including another page in main page ?