jQuery not working when used with wordpress menu

  • You are missing <script> tags
  • You are using the wrong jQuery variable name. If you want to use the $ alias you need to use noConflict as
    helgatheviking suggested or switch to “jQuery” instead of $
  • You are missing }); at the end of the code you posted above
  • You should consider separating your JS into a separate file and use wp_enqueue_script in
    the theme’s functions or other appropriate theme or plugin PHP file