I would like to ask for help on how to implement mouseover to checkbox. What I wan't to achieve is that I want to have mouseover when someone point the cursor to the checkbox based on subject description.
Below is my code to generate dynaminc checkbox but I don;t know how to add mouseover to it. thanks.
<?php
$subjects = $stmt->prepare("SELECT * FROM subjects");
$stmt->execute();
$cols = 5;
do
{
echo "<tr>";
for ($i = 1; $i <= $cols; $i++)
{
$row = $stmt->fetch(PDO::FETCH_ASSOC);
if ($row)
{
$sub_id = $row['sub_id'];
$sub_name = $row['sub_name'];
$sub_desc = $row['sub_desc']
?>
<table>
<tr><td>
<?php
echo '<input type="checkbox" sub_id="sub_id[]" name="sub_id[]" value="' . $id_tag . "\"" .'/>' . $tag_name . "
";
?>
</td></tr>
</table>
<?php
} else {
echo "<td> </td>";
}
}
} while ($row);
?>