JavaScript and UIPath inject, How to use JQuery in chrome


#1

please help me to use JQuery in chrome.
i used this code but it is not working form me in chrome.

var head = document.getElementsByTagName(“head”)[0];
var script = document.createElement(“script”);
script.src = “//ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js”;
script.onload = function() {
debugger;
document.activeElement.value=parameter;
var ElementID= $(this).attr(‘id’);

};
head.appendChild(script);
}

it’s showing $ not found


#2

please any one can help me on this. @vvaidya