I am doing you-tube like/dislike script for my web page having comments given by user and other users may like or dislike the comments.
I want to do is that when user click on like or dislike images , it automatically update the database and update the counter on web-page with out refresh.
Code:
<script type="text/javascript">
$(document).ready(function()
{
$(".like").click(function()