This is the php chunk of code…
echo "<td>
<input type='checkbox' value='online_$row[0]' " .
$checked[$row[$i]]. " onchange='background()'/>
</td>";
and here is the very simple javascript code…
function background()
{
alert(this.value);
}
How can I get that checkboxe’s name using the this keyword?
1 Answer