Having an issue with making a <td>
clickable to display a div
. Check out my code snippet below:
<td id="tdmord" style="padding-left: 15px; color: #86A7C5; padding-right: 15px; font-family: Arial;
font-size: small;" onclick="return showDiv1()">
My Orders
</td>
Here is the corresponding JavaScript function:
function showDiv1() {
document.getElementById("divmo").style.display = "block";
return false;
}
The issue I am encountering is that the <td>
element is not responding to clicks as expected.