I want to change the background color after clicking
This is my HTML code
...
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'; } ... 0 讨论(0) 查看其它5个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复 热议问题
tag and change the name of function for a better understanding. function changeBgColor() { var tableData = document.getElementById('meun'); tableData.style.backgroundColor = '#EFF2F7'; } ... 0 讨论(0) 查看其它5个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复 热议问题
function changeBgColor() { var tableData = document.getElementById('meun'); tableData.style.backgroundColor = '#EFF2F7'; } ...