From 0d3dd051610be1d2584473a9b15928cc56cbaa5e Mon Sep 17 00:00:00 2001 From: Vijay Shanker Sharma Date: Sun, 19 May 2024 10:06:29 +0530 Subject: [PATCH] Corrected the display of Play Again button in checkDraw function --- Tic-Tac-Toe Game/scripts/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tic-Tac-Toe Game/scripts/script.js b/Tic-Tac-Toe Game/scripts/script.js index 718d1fb0..57308fd5 100644 --- a/Tic-Tac-Toe Game/scripts/script.js +++ b/Tic-Tac-Toe Game/scripts/script.js @@ -52,7 +52,7 @@ function checkDraw() { if (isDraw) { isGameOver = true; document.querySelector("#results").innerHTML = "Match drawn"; - document.querySelector("#play-again").innerHTML = "inline"; + document.querySelector("#play-again").style.display = "inline"; } } }