I have a dilemma with my two HTML pages - index.html and register.html. I am trying to navigate from index.html to register.html, but I want to skip the select region step and go straight to the login page. Here's the code snippet I've been attempting:
$("#lgnToProfile").on("click", function(){
window.location.href = "register.html";
$("#slctRgn").hide();
$("#lgnPage").show();
});
Could someone please review this and provide guidance on how to fix it? What am I doing wrong?
I checked out some solutions suggested on Stack Overflow, specifically regarding showing a DIV or section after redirecting to an HTML page, but unfortunately, none of them have worked for me.