Can't access DOM, jQuery after having disabled "Isolated script"
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-17-2022 04:00 AM
Hello,
I wanted to perform DOM manipulation, for which I needed to access the DOM in my client script. After reading, I found that in order to have access to DOM and jQuery the form of the client script must be configured and the isolated script property must be set to false (unclicked).
However, upon doing so, trying to use document.getElementByID() throws an error in the console, 'document' is read as null. When trying to console.log(document), null is thrown in the console.
Why can't I access the DOM and jQuery still?
Labels:
- Labels:
-
Service Portal Development
5 REPLIES 5
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2024 01:31 PM
I am facing same issue, any clear solution for that?