Easy Click Menu

by Kofod

HTML

<div style="position: relative;">
        
    <div class="hide Erasmus" style="position: absolute; overflow: auto; width:363px;height:165px;top:42px;left:285px;margin-right:-363px;margin-bottom:-165px;"><br /><br /><span style="font-family: 'times new roman', times; font-size: medium;"><br /><span id="docs-internal-guid-89bc88dc-7fff-9441-a5e6-d14d284bd150"><span style="background-color: transparent; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline;">This one is one of my favorite articles, mainly because I remember how proud I was of this layout. I tried to do it differently of how I used to make layouts and it turned out amazing.</span></span></span></div>
    <div class="hide Erasmus" style="position: absolute; overflow: auto; width:230px;height:167px;top:41px;left:36px;margin-right:-230px;margin-bottom:-167px;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<a href="https://en.virtualpopstar.com/home/dailynews?x=read&amp;id=2327"><img src="https://i.imgur.com/SModHSq.png" alt="" width="127" height="164" /></a></div>
    <div class="hide Era" style="position: absolute; overflow: auto; width:363px;height:165px;top:42px;left:285px;margin-right:-363px;margin-bottom:-165px; display: none;"><br /><br /><span style="font-family: 'times new roman', times; font-size: medium;"><br /><span style="font-family: 'times new roman', times; background-color: transparent; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; white-space-collapse: preserve;">I just loved how Bloom wrote this article, I never heard of Sappho until then and I found myself fascinated by her. And the layout made by Melk is so pretty!</span></span></div>
    <div class="hide Era" style="position: absolute; overflow: auto; width:230px;height:167px;top:41px;left:36px;margin-right:-230px;margin-bottom:-167px; display: none;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;...

JavaScript

$('.button').click(function() {
  var textBox = this.className.split(' ')[1];
  $('.hide').hide();
  $('.' + textBox).show();
});