I am facing a problem with javascript in ie8. Iam hiding an element using this syntax.
document.getElementById("<%=fnl000Db000Tran000PERIODTYPE_ID000Value000PERIOD_TYPE_DESC.ClientId %>").style.visibility = false
I Used
document.getElementById("<%=fnl000Db000Tran000PERIODTYPE_ID000Value000PERIOD_TYPE_DESC.ClientId %>").style.visibility = "hidden"
But no use. It showing an error: something like Expected;
but i used semicolons at every end of the line.
You seem to be missing a dot:
Other than that, it’s definitely a string value, so your second code snippet is correct in that aspect. But it’s missing a semicolon. Although technically that is not required in JavaScript, you can try adding a semicolon directly before and after the statement to see if that helps:
Finally, try this link in IE8 and compare it with your own code: http://jsfiddle.net/4szBA/1/