It only loades a simple data into the div. Onclose I want it to clear the data
[http://oi59.tinypic.com/dnj6z9.jpg]
code :
Container
<div class="easyui-tabs" id="accord" data-options="tabWidth:112" style="height:500px;">
<div title="Szczegóły" style="padding:10px">
<div id="jloading"></div>
</div>
<div title="Wpisy" style="padding:10px">
<div id="jinner"></div>
</div>
</div>
and my event for onExpand
onExpandRow: function(index,row){
$('#jloading').html('<img src="themes/default/images/loading.gif">');
var ddv = $(this).datagrid('getRowDetail',index).find('div.ddv');
ddv.panel({
height:1,
border:true,
cache:false,
href:'listdetail.php?listnumb='+row.number,
onLoad:function(){
$('#dg').datagrid('fixDetailRowHeight',index);
}
});
$('#dg').datagrid('fixDetailRowHeight',index);
$.ajax({
type: "GET",
url: 'listdetail.php?listnumb='+row.number,
success: function (d) {
// replace div's content with returned data
$('#jloading').html(d);
}
});
$.ajax({
type: "GET",
url: 'listdetailsub.php?listnumb='+row.number,
success: function (d) {
// replace div's content with returned data
$('#jinner').html(d);
}
});
},
Hope its enough information to help me out.
Whenever I expand I want be able to close it and remove the content ( seems like
onCollapseRow: $('#jinner').val(''),
doesnt work here )