Jquery dropdown menus working locally, but not in WordPress [duplicate]

First thing you do about this issue is try to check if the button calls the jquery function.

for example:

$(#submit-button).click(function(){
  alert('button was clicked!'); // to display an alert
});

or using the console

$(#submit-button).click(function(){
      console.log('button was clicked!'); // check using web browser console
    });

If one of them works then there is no issue in loading the script.
Additionally, check your file permission for jquery script you use if you see 644 then change it to 755. Goodluck!