function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Arjun Mohan 6Arjun Mohan 6 

Is it Safe to Use document.getElementById in Lightning Controller?

Hi All,

Is it Safe to use document.getElementById(id) in Lightning Controller.

In recent release they mentioned that we cannot modify DOM objects .

Like using 

Etc Etc.???


Abhishek Sagar 1Abhishek Sagar 1
Yes it is safe and is supported by all the browsers.