Alternative method for document.getElementsByClassName.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2023 10:19 PM - edited 11-27-2023 01:24 AM
Hi,
Can anyone please help with an alternative method for document.getElementsByClassName as DOM manipulation should be avoided in client scripts
Below is the example code
Execute if True:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2023 10:43 PM
you can refer below link -
https://servicenow.com/community/developer-forum/alternative-to-dom/m-p/2107980/page/2
Please mark helpful or correct, if it is applicable for your case.
Thanks & Regards,
Ashish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2023 01:01 AM
Thank you for post however this solution does not serve my purpose.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2023 10:43 PM
No it did not solve my problem