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
Post a Comment