i want to change the background color after clicking?

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

I want to change the background color after clicking

This is my HTML code

...
5条回答
  •  渐次进展
    2021-01-21 18:49

    Your getclick() function should look like this:

    function getclick(el)
    {
        el.style.backgroundColor='#888888';
    }
    

    In js, styles look a little different

    and in your td, do

    
    

提交回复
热议问题