javascript - console error for jquery function? -


i looking @ jquery function on page , reason im getting error, "uncaught typeerror: undefined not function". here jquery not know error?

jquery:

 <script type="text/javascript"> $(document).ready(function(){  $('body').on('click', '.like', function(){   if($(this).attr('title')=='like'){    $.post('/like.php',{imid:$(this).attr('id'),action:'like'});     $(this).removeclass('like').addclass('unlike').attr('title', 'unlike');   } })     .on('click', '.unlike', function(){    if($(this).attr('title')=='unlike'){     $.post('/like.php',{imid:$(this).attr('id'),action:'unlike'});    $(this).removeclass('unlike').addclass('like').attr('title', 'like');     }   }); }); </script> 


Comments

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -