The html/css:
<style>
div.myWords p { display: hidden; }
p.show { display: block; }
</style>
<div class="myWords">
<p>Hello</p>
<p>Hola</p>
<p>Bonjour</p>
</div><!-- myWords -->
Is there a way to dynamically add the "show" class to a single <p>
element each time the document is loaded, chosen randomly?
In simpler terms, when the page loads, one paragraph should be visible and this paragraph should be selected at random.