i want to change the background color after clicking?

后端 未结 5 1353
礼貌的吻别
礼貌的吻别 2021-01-21 18:18

I want to change the background color after clicking

This is my HTML code

...
5条回答
  •  半阙折子戏
    2021-01-21 18:45

    I would add the id to your tag and change the name of function for a better understanding.

    function changeBgColor() {
    
    var tableData = document.getElementById('meun');
    
    tableData.style.backgroundColor = '#EFF2F7';
    
    }
    
    
    
    
    ...
    

提交回复
热议问题