Access jquery functions
Hello,
I am using jsPsych with JATOS. In my html code I load components from a different html file. (in my secondary file I contain a series of header buttons).
To do this I use jquery and the following line of code:
$(function(){$("#headerButtons").load("functions/GeneralPurposeFunctions/HeaderButtons.html", function() {UpdateHeader()});}),
I see that JATOS alos loads jquery. I am wondering if instead of JATOS loading jsquery and then my code loading jquery again, can I access the jquery that JATOS loads? If so how? And if this is possible can you be super specific, please?
Thank you,
Jason

Comments
Hi Jason,
you can access the jQuery that is loaded by jatos.js with
jatos.jQuery. However, it might be removed at some unknown time in the future and you shouldn't rely on its existence in jatos.js for your studies, at least if they should work long-term. The thing is, jQuery isn't really needed in jatos.js and all functionality that is currently done with jQuery can be moved to standard JS. So, one long-standing plan of mine is to remove jQuery.Best,
Kristian
Thank you for the idea Kri,
I looked at my code again and removed my reliance on jQuery.
Problem solved.
Jason