How to use JQuery in Magento 2?

For using jQuery, please use the below code how-to-use-jquery-in-magento-2

You can use the JQuery by adding the require

require(['jquery', 'jquery/ui'], function($){
  jQuery(document).ready( function() {
    // add your code here
  });
});

Please leave your comment for asking any question or suggestion.

Need Help? how-to-use-jquery-in-magento-2