Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Inline css wont toggle, no javascript

I am trying to achieve toggle of div using just inline css but its not working. please note that inline css is required no javascript. Thanks guys.

</head>

<body>

  <div>
    <a id="hide1" href="#hide1" class="hide">+ Expand</a>
    <a id="show1" href="#show1" class="show" style="display: none;">- Expand</a>
    <div class="details" style="display: none;">
      Content goes here.
    </div>

  </div>

</body>

</html>

>Solution :

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

Use the summary / details HTML elements.

<details>
    <summary>Expand</summary>
    Content goes here.
</details>
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading