You are calling jQuery wrong by the shorthand $
. If you will look in your console you will see an error that $
is not a function / undeclared etc (this is due to jQuery’s conflict mode if I am not wrong).
Your code should look something like this:
<script type="text/javascript">
jQuery(function($) {
$( "a.toggle").click(function() {
$("#log_forms").toggleClass( "open" );
});
});
</script>