JSFiddle - React, Tailwind, and code Playground
by GaryC123
HTML
<table>
<tr>
<td> <b>Customer</b>
</td>
<td id="S1"></td>
</tr>
<tr>
<td> <b>Status</b>
</td>
<td id="S2">ABC</td>
</tr>
</table>
<!-- something more -->
<table>
<td>
<button id="B2" onclick="location.href='MyPageABC'">Click ABC</button>
</td>
<td>
<button id="B1" onclick="location.href='MyPageXYZ'">Click XYZ</button>
</td>
</tr>
</table>
JavaScript
if (document.getElementById("S2").innerText != "ABC") document.getElementById("B2").style.visibility = "hidden";
if (document.getElementById("S1").innerText == "") document.getElementById("B1").style.visibility = "hidden";