I have following JavaScript snippet code in above the View file that i used CGridView. Its functionality is only alert a message to user when user clicked on update CButtonColumn.
<script>
$(document).ready(function(){
$('.update').click(function(){
alert('Will be ready!');
return false;
});
})
</script>
For example if we have a table with 20 records and want display records in GridView and CActiveDataProvider->pageSize=10, two page will be create. now if we click on page 2 for fetching other records, the snippet JavaScript code don’t act. why?