Simple jQuery Click Not Working, though console log recognizes the function [closed]

When enqueuing a script, you should state your script’s dependencies. In your case, it’s jQuery.

Enqueue your script in the following way:

wp_enqueue_script (  'my-plugin', 'path/to/the.js', array( 'jquery' ) );

You may also want to ensure that your script IS loaded in the footer, by setting the last argument to true:

wp_enqueue_script (  'my-plugin', 'path/to/the.js', array( 'jquery' ), null, true);

Where null would be the version number and true states that the script needs to be loaded in the footer.