I would like to set a random field like in PHP e.g. 1-3 and do the code for each state, however I do not know ho to do the same using javasccript. Is it possible, how to do such thing? Thanks in advance.
<?php $random = rand(1,3); ?>
<?php if ($random == 1) : ?>
<div id="myContent">
</div>
<?php endif; ?>
<?php if ($random == 2) : ?>
<div id="myContent2">
</div>
<?php endif; ?>
<?php if ($random == 3) : ?>
<div id="myContent3">
</div>
<?php endif; ?>