i have this function in javascript
do u mean in
window.onload = function ()
{ divcity.............................= none;
}
there is something missing or incorrect
as
alert(a); =====1
if(a == "CITY")
{
alert("value ="+ a); =====2
document.getElementById('divcity').style.display = a.toUpperCase() == "CITY" ? "none" : "block";
}
in this code i get the first(1) alert
but not the second
which mean its not going in the if condition
i dont find anything wrong with code
anything wrong with the javascript??