Use jquery library in Magento 2

require([‘jquery’, ‘jquery/ui’], function($){
//your js code here
});

Example 

require([‘jquery’, ‘jquery/ui’], function($){
jQuery(document).ready( function() {
alert(“Hello”);
});
});

1 thought on “How to use jquery library in Magento 2?

  1. Pingback: pgslot

Comments are closed.