.
.
Сообщений 1 страница 2 из 2
Поделиться22020-07-26 22:36:40
[html]<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<div class="ShowClickedContent"></div>
<nav>
<a href="#item1" class="menu">item1</a>
<a href="#item2" class="menu">item2</a>
<a href="#item3" class="menu">item3</a>
</nav>
<div id="item1" style="display: none;">
<p>the content here will be loaded into the ShowClickedContent div</p>
</div>
<div id="item2" style="display: none;">
<p>the content here will be loaded into the div #1</p>
</div>
<div id="item3" style="display: none;">
<p>the content here will be loaded into the div #2</p>
</div>[/html]