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";
精彩评论