i want to change the background color after clicking?

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

I want to change the background color after clicking

This is my HTML code

...
5条回答
  •  自闭症患者
    2021-01-21 19:11

    Here's the code in jQuery:

    $("td").click(function() {
            $(this).css("background-color","#ABCDEF");
        });
    

提交回复
热议问题