DHTML JavaScript not working

So I have a DHTML panel thats loading a website into a DFrame, and that’s working fine. However, some of the JavaScript code on the website does not work in the DHTML panel, but works fine in a regular browser. For example, something like this does not work
(using jQuery):



$(document).on("click", "a#load-items", function(e){
    e.preventDefault()
    $(this).hide()
})


Any ideas why this wouldn’t work in-game?

I’m not really big on web-sided stuff, but I’m going to take a wild guess and say you didn’t add jQuery as a reference in your document?

For example:


<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script>

Or whichever other CDN.

jQuery is added. As I said, it works when I try it outside of the game in Chrome or Firefox, but the HTML/DHTML panels are not running some JavaScript (some of it works. What I posted is an example of something that does not work)

I’ve tried the current version of jQuery as well as older versions, no luck :frowning:

Does any

 lines appear in the console?

I do not see any