I have a written a code to update likes and dislikes buttons. It works fine for the first time. But if the user again clicks on the buttons, It doesn't respond to clicks. I tried changing click to on('click') as suggested in questions of similar type.
$('.like').on('click', function (event) {
// My Code
});