开发者

to change only the table color using javascript

开发者 https://www.devze.com 2022-12-16 22:12 出处:网络
im new to javascript.. im trying to create a page where when the user selects the colors the particular color should chan开发者_如何学Goge but only the <table> and its <td> color should ge

im new to javascript.. im trying to create a page where when the user selects the colors the particular color should chan开发者_如何学Goge but only the <table> and its <td> color should get changed on Click function any anyone pls help me in dis.. thanks in advance.


You can do something like this:

 document.getElementById("table_id_here").style.backgroundColor = "#00ff00";
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号