Click here to Skip to main content
15,889,211 members
Please Sign up or sign in to vote.
1.75/5 (4 votes)
I have two locations, in that 1st location has 5 user controls, when am copying data from location 1 to location 2 it is ok, but once i go save data in location 2 and trying to select first...
JavaScript
Microsoft JScript runtime error: 'document.getElementById(...)' is null or not an object
Posted
v2
Comments
Sergey Alexandrovich Kryukov 20-Oct-13 1:45am    
And where is your question? Not enough information anyway...
—SA

1 solution

Quote:
Microsoft JScript runtime error: 'document.getElementById(...)' is null or not an object
You have not provided much detail and codes to look at. Still I would like to give you some idea on the error.

This error always comes, if the Element is not present inside the Document. When you try to get the Element, it says that object is null as it is absent.

If you creating the Element dynamically, then make sure that you are trying this code after the Element is created and inside the correct event.

Hope this helps you to resolve the issue.
 
Share this answer
 

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