Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="item no-active">One</div>
- <div class="item">Two</div>
- <div class="item">Three</div>
- <div class="item">Four</div>
- var random = Math.floor(Math.random() * $('.item').length);
- $('.item.no-active').hide().eq(random).show();
Add Comment
Please, Sign In to add comment