I am using this plugin http://www.jqueryscript.net/demo/Super-Simple-Modal-Popups-with-jQuery-CSS3-Transitions/# to create modal pop-ups to show two forms – Login and Register. A link (Login/Register) in the top menu bar is a trigger. However, I wish to show one form at a time. So,I am using the following the jQuery to replace one form (div) with another.
//popup1 is the Login form
//pupup2 is the registration form
$("#create-acct").click(function(){
$('#popup1').replaceWith($('#popup2'));
});
And this is working perfect. When I click Create an account link in the login form, it’s being replaced with the registration form. But the problem is when I close Registration form (#popup2), it’s going away but when I again click the nav menu Login/Register, the login form does not appear. Instead, it takes a page reload and then the popups work.
Anyway solution as how I can achieve this without a page load. Thanks
I dont know if I understand exactly what you want but, I did a full working exemple using your plugin : Tell me if you need more explanations