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

Ansible warning on jinja2 braces on when -

Parsing a protocol message from Go by Java -

html - How to custom Bootstrap grid height? -