From bf1d98782ba98bd828c3d45504cb815e876d7f56 Mon Sep 17 00:00:00 2001 From: DevanoAlif22 Date: Tue, 28 May 2024 19:49:38 +0700 Subject: [PATCH] update border input --- public/script.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/public/script.js b/public/script.js index 0dda4e5..668b07e 100644 --- a/public/script.js +++ b/public/script.js @@ -40,13 +40,13 @@ function showResponseWisata(response) { document.getElementById("getWisata").innerText = "Close"; document.getElementById("getWisata").style.backgroundColor = "red"; inputan.disabled = true; - inputan.style.border = "red"; + inputan.style.border = "1px solid red"; } else { responseElement.style.display = "none"; document.getElementById("getWisata").innerText = "GET"; document.getElementById("getWisata").style.backgroundColor = "#009c60"; inputan.disabled = false; - inputan.style.border = "white"; + inputan.style.border = "1px solid white"; } } @@ -126,16 +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"; + inputProvinsi.style.border = "1px solid red"; + inputWisata.style.border = "1px solid 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"; + inputProvinsi.style.border = "1px solid white"; + inputWisata.style.border = "1px solid white"; } }