I have a <ul>
with over 6 <li>
elements. I only want to show only 6 at time.
The trick is I need it to randomly select which elements to hide, and to stagger the hide/show.
For example my current markup :
<ul>
<li>1<li>
<li>2<li>
<li>3<li>
<li>4<li>
<li>5<li>
<li>6<li>
<li>7<li>
<li>8<li>
<li>9<li>
</ul>
Is it possible to use jQuery to hide/show the elements to provide something random like this:
<ul>
<li style="display:none">1<li>
<li>2<li>
<li style="display:none">3<li>
<li>4<li>
<li>5<li>
<li>6<li>
<li>7<li>
<li style="display:none">8<li>
<li>9<li>
</ul>