javascript expected ')'
-
I get an javascript expected ')' error on the code below: function toggle() { if (document.getElementById("<%= RadioButtonList_Liability.ClientID %>").value == "Yes") { document.getElementById("<%= Label_Liability.ClientID %>").style.visibility = "inherit"; } else { document.getElementById("<= Label_Liability.ClientID %>).style.visibility = "hidden"; } ) for the life of me, I don't see anything wrong ....</x-turndown>
-
I get an javascript expected ')' error on the code below: function toggle() { if (document.getElementById("<%= RadioButtonList_Liability.ClientID %>").value == "Yes") { document.getElementById("<%= Label_Liability.ClientID %>").style.visibility = "inherit"; } else { document.getElementById("<= Label_Liability.ClientID %>).style.visibility = "hidden"; } ) for the life of me, I don't see anything wrong ....</x-turndown>
Never mind, now that I see it in this editor I see the paren is wrong ... sigh ...
-
I get an javascript expected ')' error on the code below: function toggle() { if (document.getElementById("<%= RadioButtonList_Liability.ClientID %>").value == "Yes") { document.getElementById("<%= Label_Liability.ClientID %>").style.visibility = "inherit"; } else { document.getElementById("<= Label_Liability.ClientID %>).style.visibility = "hidden"; } ) for the life of me, I don't see anything wrong ....</x-turndown>
line no 10 in your javascript.... document.getElementById("<= Label_Liability.ClientID %>).style.visibility = "hidden"; % is missing......
!- F - R - I - E - N - D - S -!
-
I get an javascript expected ')' error on the code below: function toggle() { if (document.getElementById("<%= RadioButtonList_Liability.ClientID %>").value == "Yes") { document.getElementById("<%= Label_Liability.ClientID %>").style.visibility = "inherit"; } else { document.getElementById("<= Label_Liability.ClientID %>).style.visibility = "hidden"; } ) for the life of me, I don't see anything wrong ....</x-turndown>
Couple of things that I see is missing/wrong... 1.
document.getElementById("<= Label_Liability.ClientID %>).style.visibility = "hidden";
should be
document.getElementById("<%= Label_Liability.ClientID %>").style.visibility = "hidden";
2. I see one extra ")" at the end of the javascript block... Line 12. Suggestion - Always use single quote ['] with javascript.