I am trying to select certain buttons that have a data-state="start", so that when the user clicks on the buttons, the function randomly selects from an array. I just don't know how to select my data-states... Here is some of the code:
$("").on("click", function() {
var randomPick = Math.floor(Math.random() * comPicks.length);
alert(randomPick);
});
I'm trying to select the buttons with the data-state="weapon"...
<button class="btn btn-info btn-block" data-state="weapon">ROCK</button>