I want to change the background color after clicking
This is my HTML code
<td class="meun" onclick="getclick();">...</td>
And this is my JavaScript:
function getclick()
{
this.style.background-color: #EFF2F7;
}
i want when click any on in the td in the table to change it’s background color
http://jsfiddle.net/ThiefMaster/3ZmCh/16/
You need to pass
thisas an argument and use proper JavaScript in the handler method: