This question already has an answer here:

I want to use JavaScript in my own custom Magento Module.

Unfortunately I do not have any clue how I can access it.

Another important thing to note is that I need to have access to JQuery.

marked as duplicate by Aasim Goriya, Rohan Hapani, Jai, Rk Rathod, Manashvi Birla Aug 14 at 9:54

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


Yes, just type this following Code (access jQuery with "jQuery"):

<script type="text/javascript">
  require(["jquery","domReady!"], function (jQuery) {
    //Youre Code

I hope this will help you. Have a good time using Magento 2.3!

Not the answer you're looking for? Browse other questions tagged or ask your own question.