Seven circles but only one is changing colour, why?

前端 未结 8 1249
梦谈多话
梦谈多话 2021-01-26 09:29

I am new to javascript and I have an assignment to create seven circles which should change colour on a mouse click. The first circle is changing colour but the other six just r

8条回答
  •  不思量自难忘°
    2021-01-26 09:48

    You need to work on class instead of a fix id. Use below code:

    
    
    
        Circles of rainbow colours
    
    
    
    

    Rainbow Colours

    hope it helps you.

提交回复
热议问题