Click here to Skip to main content
15,868,016 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi I have my table (HTML) and section in asp.net.I want to clear it by clicking a Button by using Java script.By I am getting The Above Error : (
Microsoft JScript runtime error: (Unable to get value of the property 'style': object is null or undefined)

C#
function ClearALLValues() {
                        var tabDestination = document.getElementById('<%=tabDestination.ClientID%>');
            tabDestination.style.display = 'none';
            var tblSections = document.getElementById('<%=tblSections.ClientID%>');
            tblSections.style.display = 'none';
            var lblSections = document.getElementById('<%=lblSections.ClientID%>');
            lblSections.style.display = 'none';

                    }
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900