From 1fc66d21fcd280517795d9cdb6eaec73e7f90bff Mon Sep 17 00:00:00 2001 From: DevanoAlif22 Date: Tue, 28 May 2024 19:40:46 +0700 Subject: [PATCH] update border --- public/script.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/public/script.js b/public/script.js index 86a5c00..0dda4e5 100644 --- a/public/script.js +++ b/public/script.js @@ -40,11 +40,13 @@ function showResponseWisata(response) { document.getElementById("getWisata").innerText = "Close"; document.getElementById("getWisata").style.backgroundColor = "red"; inputan.disabled = true; + inputan.style.border = "red"; } else { responseElement.style.display = "none"; document.getElementById("getWisata").innerText = "GET"; document.getElementById("getWisata").style.backgroundColor = "#009c60"; inputan.disabled = false; + inputan.style.border = "white"; } } @@ -124,12 +126,16 @@ function showResponseDetail(response) { document.getElementById("getDetail").style.backgroundColor = "red"; inputProvinsi.disabled = true; inputWisata.disabled = true; + inputProvinsi.style.border = "red"; + inputWisata.style.border = "red"; } else { responseElement.style.display = "none"; document.getElementById("getDetail").innerText = "GET"; document.getElementById("getDetail").style.backgroundColor = "#009c60"; inputProvinsi.disabled = false; inputWisata.disabled = false; + inputProvinsi.style.border = "white"; + inputWisata.style.border = "white"; } }