Yii Gridview loading to next page function not working -


i using yii gridview project, , add

<?php yii::app()->clientscript->registerscript('test', " $('td').on('click',function(){     console.log('test'); }); ");?> 

when load page, works. however, after clicking next page, function not work. how fix problem?

try (i've omitted php parts)

$('body').on('click', 'td', function(){     console.log('test'); }); 

Comments

Popular posts from this blog

html - How to custom Bootstrap grid height? -

javascript - pass values from mssql to views in node -

javascript - Understanding ExtJS Framework Syntax -