blencycoalo
New Member
The following code doesn't seem to execute properly for me, and I'm puzzled as to why. \[code\]NonITView\[/code\] and \[code\]ITView\[/code\] are both divs in my ASP page. \[code\]txtIsIT\[/code\] is an \[code\]asp:textbox\[/code\] on the page that gets either "yes" or "no" on page load.\[code\] if (document.getElementById("<%= txtIsIT.ClientID %>").value = "http://stackoverflow.com/questions/12821088/yes") { $("#NonITView").hide("slow"); $("#ITView").show("slow"); } else if (document.getElementById("<%= txtIsIT.ClientID %>").value = "http://stackoverflow.com/questions/12821088/no") { $("#ITView").hide("slow"); $("#NonITView").show("slow"); } else { alert("Error"); }\[/code\]The \[code\]if\[/code\] is evaluating properly. In firefox's web console, by entering the jquery .show/.hide functions, the divs are properly shown/hidden, which is part of what's confusing me. Anything sticking out to you that should be fixed?