I am using grid view to display contents from a table and now i want pass a particular id to update it in a popup modal.The id of popup modal is "Mymodal1". and i am using update button in a column of a grid view to pass id… Code is:
'update'=>array
(
'url'=>'Yii::app()->controller->createUrl("update",array("id"=>$data->id))',
'click'=>'js: function()
{
Approve_clicked($(this).attr("href"));
return false;
function Approve_clicked(data) {
$("#myModal1 .modal-body p").html(data); $("#myModal1").modal();
}
}'
),
On clicking the update button in a grid view the pop up window is opening along with the form but the previous value stored is not showing.
How to pass id to open popup window with previous stored value.
Help me…!!!