I am working on a survey platform. By default I have a footer that shows up in all survey pages. I need the footer to display only on the first display page. In order to do this I am attaching this jQuery to all pages where I want the footer hidden:
jQuery("#Footer").hide();
The issue I am having now is that based on a link condition, the first page of the survey can be page1 or page2. This means. I have 2 scenarios:
- I access the survey using
link1. This should start onpag1,pag2,pag3. The footer is displayed only onpag1and is hidden by jQuery on the subsequent pages. - I access the survey using
link2. This should start displaypag2first. The footer is not displayed and is hidden by the jQuery I applied.
Any ideas?
Add this script to
pag1andpag2.I assume your URL to be something like :
link1/**/**/pag1orlink2/**/**/pag2