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

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -