I know live
has been deprecated. Now I am using Yii grid view and i have following code:
$this->widget('zii.widgets.grid.CGridView', array(
'id' => 'category-grid',
'dataProvider' => $model->search(),
'filter' => $model,
'columns' => array(
'title',
array(
'class' => 'CButtonColumn',
'viewButtonUrl' => 'Yii::app()->createUrl("/shop/category/view",
array("id" => $data->category_id))',
'updateButtonUrl' => 'Yii::app()->createUrl("/shop/category/update",
array("id" => $data->category_id))',
'deleteButtonUrl' => 'Yii::app()->createUrl("/shop/category/delete",
array("id" => $data->category_id))',
),
),
));
On the browser it gives me error:
typeError: jQuery(...).live is not a function
[Break On This Error]
jQuery('#category-grid a.delete').live('click',function() {
I am confused as i have searched the entire folder for .live function but i cant find it. Please help!