Created
September 9, 2021 03:50
-
-
Save sdubois/abbc55ee1ba6c5ec0ae9b1115c3d5729 to your computer and use it in GitHub Desktop.
CBS Pick 'Em Random Clicker
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('#makePicks .pickContainer').each(function( index ) { | |
var len = $(this).find('.teamSelection').length; | |
var random = Math.floor( Math.random() * len ) + 1; | |
$(this).find('.teamSelection').eq(random-1).click(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment