开发者

to change only the table color using javascript

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜