From 6d58bf5db0ed438aaea77b3df316d3ef547a11fa Mon Sep 17 00:00:00 2001 From: jsalzer312 Date: Tue, 28 May 2024 18:02:54 -0400 Subject: [PATCH] Update app.js --- js/app.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/js/app.js b/js/app.js index 7be03bc..58f4767 100644 --- a/js/app.js +++ b/js/app.js @@ -191,12 +191,16 @@ function showTable(){ function toggleElement(row,num){ //block = show | none = hide + let hidden = row.getAttribute("hidden"); + if(num === 0){ console.log("Changing row contact on "+row.style.display); - row.style= "display:block;"; + row.removeAttribute("hidden"); + //row.style= "display:block;"; } else if(num === 1){ - row.style = "display:none;"; + row.setAttribute("hidden","hidden"); + //row.style = "display:none;"; } }