show/hide div with simple jQuery script [closed]

Most likely, the cause of your problem is that jQuery is in compatibility mode. This means that you can’t use the ‘$’ shortcode.

To get your Javascript code to work, replace all ‘$’ with ‘jQuery’

Or, wrap your code in an anonymous function, like this:

jQuery(document).ready(function( $ ) {

   // Put your jQuery code here.  

});

See: https://digwp.com/2011/09/using-instead-of-jquery-in-wordpress/