Ajaxlink And Ajax Loaded Section`s Ajaxlink Have Same Id Yt0

i have table with ajax link`s


<?php 

  $this->widget('bootstrap.widgets.TbGridView', array(

  'dataProvider'=>$dataProvider,


  'template'=>"{items}\n{pager}",

  'id'=>'tasklist',

  'columns'=> array(

          array('header'=>'', 

                'type' => 'raw',

                'name'=>'complete',

                'value'=>'"<i class=\"type glyphicon glyphicon-".$data->type->class."\"></i>"',

                //'value'=>'$data->type->name',

                'htmlOptions'=>array('class'=>'tdleft'),

                ),


          array('header'=>'Title', 

                'type' =>'raw',

                'value'=>'CHtml::ajaxLink($data->title,array("task/show", "id"=>$data->id), array("replace"=>"#taskdesc"))', 

                ),


          array('header'=>'Project',

                'type' =>'raw',

                'value'=>'CHtml::link($data->project->title,array("#"), array("data-toggle"=>"tooltip", "data-placement"=>"top","title"=>$data->project->title))',

                'htmlOptions'=>array('class'=>'tdpr'),

                ),

          )

  ));   

 ?>

And in same page , at right section have

<div id="taskdesc"></div>

So, when user click on "Title", in div rendered some view (via rederPartial in the Controller), here is my controller`s action


public function actionShow($id)

 {


$this->renderPartial('_show',

    array('model'=>$this->loadModel($id)), false, true);

 }

in my _show view there are new ajaxLink and my problem is here, this ajaxlink NOT WORKing, because this one has same id attribute "yt0". if i add new id attribute, then i have just working link, not ajax. ajaxlink not working. There are conflict with ajaxlink with same id attributes

Please, how can i solve this problem.




'CHtml::ajaxLink($data->title,array("task/show", "id"=>$data->id), array("replace"=>"#taskdesc","id"=>$data->id))



Hi, i have 2 renderPartial in the same view, both partialviews has ajaxlink, is the same problem, but when i change id attribute doesn’t work.

Please help me.

<?php foreach($lotes as $lote){ $c++; ?>

			&lt;tr&gt;


				&lt;td style=&quot;text-align: center;&quot;&gt;


					&lt;?php


								echo CHtml::ajaxLink(&#036;lote[&quot;lote&quot;], array('presupuesto/actualizalotes'),


																			array(


																						'data'=&gt;array('presupuesto[empresa]'=&gt;&quot;js:&#036;('#presupuesto_empresa').val()&quot;,


																												'presupuesto[p]'=&gt;&#036;configuracion-&gt;valor,


																												'presupuesto[grupoCostos]'=&gt;&quot;js:&#036;('#presupuesto_grupoCostos').val()&quot;,


																												'presupuesto[semana]'=&gt;&quot;js:&#036;('#presupuesto_semana').val()&quot;,


																												'presupuesto[grafica]'=&gt;&quot;js:localStorage.getItem('grafica')&quot;,


																												'presupuesto[lote]'=&gt;&quot;js:&#036;('input[name=presupuesto_lote]:checked').val()&quot;,


																										),


																						'success'=&gt;'js:function(val){


						                    							&#036;(&quot;#lotes&quot;).html(val.lotes);


						                    							&#036;(&quot;#presupuestoAcumulado&quot;).html(val.acum);


						                    							&#036;(&quot;#grafica&quot;).html(val.grafica);


																						}',


																						'type'=&gt;'POST',


																						'dataType' =&gt; 'json',


																						'id'=&gt;&#036;lote[&quot;lote&quot;]));

?>

				&lt;/td&gt;


				&lt;td&gt;&lt;?php echo &#036;lote[&quot;lote&quot;];?&gt;&lt;/td&gt;


				&lt;td&gt;&lt;?php echo &#036;lote[&quot;descripcion&quot;]; ?&gt;&lt;/td&gt;


				&lt;td&gt;&lt;?php echo &#036;lote[&quot;hectareas&quot;];?&gt;&lt;/td&gt;


			&lt;/tr&gt;


		&lt;?php } ?&gt;