Html – My div doesn't change it's color when clicked upon
So i've written a piece of code where there are 9 divs and I've given them ".spaces" classes and i want them to change their color if they are clicked on. But only the first div changes it's color to…