From b74717d5734d800d070ec725c042fd37f09acfd8 Mon Sep 17 00:00:00 2001 From: Ghanshyamsinh Zala <130747789+GZ30eee@users.noreply.github.com> Date: Sun, 18 Feb 2024 23:10:50 +0530 Subject: [PATCH] Update script.js --- script.js | 1 + 1 file changed, 1 insertion(+) diff --git a/script.js b/script.js index 168e3e9..0898eb8 100644 --- a/script.js +++ b/script.js @@ -147,6 +147,7 @@ window.onclick = function (event) { }; function forecastDetails(info) { + document.querySelector(".forecast").innerHTML = ""; if (info.error) { infoTxt.classList.replace("pending", "error"); infoTxt.innerText = `${inputField.value} isn't a valid city name`;