Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Replacing DOM scripts

Neeraja2
Tera Contributor

Hi Team, 

I have a requirement to replace the DOM related things in the script.

 

I need to remove $ and 

(document.documentElement.getAttribute('data-doctype') == 'true') these lines from client script. Can anyone suggest a way to do this?
var callerLabel = $('label.incident.u_requested_for').down('label');
 
 if(document.documentElement.getAttribute('data-doctype') == 'true')
bgPosition = "55% 45%";
 
What does the above line of code means?
0 REPLIES 0