Click here to Skip to main content
15,036,737 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 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)

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


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