In one of my web pages, there is a div that I'll refer to as div1
.
Within this div, there is a link called 'Link1'. My goal is to click on Link1
, triggering the replacement of div1
with div2
. Inside div2
there will be another link, let's call it Link2
; clicking on Link2
will then replace div2
back with div1
.
I am looking for a way to achieve this functionality using javascript/angularjs/html/css.