I'm using jQuery on a html page.
I'm using this version of jQuery http://code.jquery.com/jquery-1.10.1.js
In my page jquery code I have this code.
This code shows a div called #div1 whenever the page load.
// after page refresh this fires
//insert all your ajax callback code here.
//Which will run only after page is fully loaded in background.
// show div called div 1 on page load
On my page i have two divs. One has id="div1" and the other has id="div2".
Is there a way to do this?
On the very first page load show #div1.
On the 2nd page load or any other page load after the 2nd page load show #div2 and hide #div1