I am trying to make a like button using ajax and found the following error:
Uncaught TypeError: $.ajax(...).error is not a function