You need to sign in to do that
Don't have an account?
Arjun 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
1.document.getElementById(id).checked
2.document.getElementById(id).Value
Etc Etc.???
Thanks
Arjun.M
Is it Safe to use document.getElementById(id) in Lightning Controller.
In recent release they mentioned that we cannot modify DOM objects .
Like using
1.document.getElementById(id).checked
2.document.getElementById(id).Value
Etc Etc.???
Thanks
Arjun.M
Abhishek Sagar 1
Yes it is safe and is supported by all the browsers.