title: How to change the modal content when you press different buttons
body: <p>How to change the modal content if I click different buttons. Because I tried to figure it out but it didn't work. It showed the modal content 1 in all buttons.</p>
  <pre><code>&lt;div class=&quot;showmodal&quot;&gt;
          &lt;button class=&quot;show-modal&quot;&gt;Show modal 1&lt;/button&gt;
          &lt;button class=&quot;show-modal&quot;&gt;Show modal 2&lt;/button&gt;
          &lt;button class=&quot;show-modal&quot;&gt;Show modal 3&lt;/button&gt;
       &lt;/div&gt;
  
        &lt;div class=&quot;modal hidden&quot;&gt;
          &lt;button class=&quot;close-modal&quot;&gt;X&lt;/button&gt;
           &lt;p&gt;
            Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
            tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim
            veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea
            commodo consequat. Duis aute irure dolor in reprehenderit in voluptate
            velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint
            occaecat cupidatat non proident, sunt in culpa qui officia deserunt
            mollit anim id est laborum.
          &lt;/p&gt;
      &lt;/div&gt;
      &lt;div class=&quot;modal hidden&quot;&gt;
        &lt;button class=&quot;close-modal&quot;&gt;X&lt;/button&gt;
         &lt;p&gt;
          jjjjjqui officia deserunt
          mollit anim id est laborum.
        &lt;/p&gt;
      &lt;/div&gt;
      &lt;div class=&quot;modal hidden&quot;&gt;
        &lt;button class=&quot;close-modal&quot;&gt;X&lt;/button&gt;
         &lt;p&gt;
          Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
         in culpa qui officia deserunt
          mollit anim id est laborum.ff
        &lt;/p&gt;
    &lt;/div&gt;
        &lt;div class=&quot;overlay hidden&quot;&gt;&lt;/div&gt;
  
  &lt;/div&gt;
  </code></pre>
  <p>This is the whole code:</p>
  <p><a href="https://codepen.io/jujuju12/pen/XWMzPBe" rel="nofollow noreferrer">https://codepen.io/jujuju12/pen/XWMzPBe</a></p>