OK, I know this has been asked before but none of the answers seems to apply to my case. I'm trying to get a very tiny piece of jQuery running (I'm just getting started on it).
jQuery(document).ready(function(){
jQuery('.comtrig').on('click',function(){
$(this).next().animate({'display':'inline'},1000);
});
})();
I get the error TypeError: jQuery(...).ready(...) is not a function in FF or Uncaught TypeError: object is not a function in Chrome.
- Solution 1 was to replace
$withjQuerybut I obviously already did that as shown above - I'm not in Wordpress either
- I'm using only jQuery and the above mini script, no other JS
- jQuery itself seems to load fine

What am I missing here?
jQuery(...).ready(...)call?})();})();with});, This is incorrect{())