I have two div in my page named div1 and div2 and a button.Initially div2 will be hidden.When i click on the button three things should happen
1.close the div1 with some animation
2.Show a loading image for a particular amt of time
3.Show the div2 with some animation
How can i implement the above using jquery ?