I'm trying to build a simple Bingo site where a button choose a random number, and this number changes the color of a div
, so it is visible that this number is picked.
I only want it to remember which numbers are chosen locally.
I think it is maybe something to do with localStorage(), but i can not figure out how.
Little piece of code where it selects a random number looks like this:
$('.new_number').click(function(){
random_number = Math.floor((Math.random(1,90) * 90) + 1) ;
$('.' + random_number).toggleClass('box1');
localStorage
})