scroll scrpit to particular button position to next id when click button

You should place the whole function/script inside a so called IIFE like this:

(function($){

    //your code

})(jQuery);

In WordPress the $ isn’t attached to jQuery by default due to possible conflicts with other JavaScript libraries.

File not found.