var a = "City1";
function Toggle() {
document.getElementById("div1").style.display = a == "City" ? "block" : "none";
}
is this correct
it shld e
var a = "City"; or city1
i have a = city and with that
when the page is loaded & without the script action the div is visible true
when i click on the button to execute script the div becomes visible fasle