Magento 2 – How to use jQuery in magento 2? / javaScript / By Saphal JSrequire([ 'jquery', 'jquery/ui'], function($){ $(document).ready(function($) { console.log('running'); // your script }); });