I'am using Yii framework, I want to reload this div:
<div class="likes" id="likes">
<?php
echo $model->likes." ".CHtml::imageButton($src.'like.png', array('value'=>'like', 'width'=>'25px', 'height'=>'20px'));
?>
</div>
by using this ajax function that is written in a js file in the extensions folder:
$(document).ready(function(){
$("#like").click(function(){
$("#likes").html("result reloaded successfully");
});
});
but their is nothing happened when I clicked the button, can you help me?