Skip to content

Commit

Permalink
Update app.js
Browse files Browse the repository at this point in the history
  • Loading branch information
jsalzer312 committed May 28, 2024
1 parent 42b0e6a commit 6d58bf5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;";
}
}

Expand Down

0 comments on commit 6d58bf5

Please sign in to comment.