I have a table with 2 rows having 2 columns each. I want to change the innerHTML of the td when i click a td. That is when i
<table border="1">
<tr id="r1">
<td id="b1_1" onclick="b(b1_1)">0</td>
<td id="b1_2" onclick="b(b1_2)">0</td>
</tr>
<tr id="r2">
<td id="b2_1" onclick="b(b2_1)">0</td>
<td id="b2_2" onclick="b(b2_2)">0</td>
</tr>
</table>
function _(x){
return document.getElementById(x);
}
function b(bid){
_x(bid).innerHTML = "5";
}
_xfunction, as far as I can see..