Datatable fnDraw is not working if I use modal in action button

Datatable fnDraw is not working if I use modal in action button

koushikdas92koushikdas92 Posts: 1Questions: 1Answers: 0

On manual Page refresh The modals are working fine. But when reloading the datatable with ajax. The popups stop working. Following are html and ajax script:

<?php foreach($records as $row) {?> <?php }?>
IVR Name Actions
<?php echo $row['ivrname']?> " data-toggle="tooltip" title="Remove" class="mb-xs mt-xs mr-xs modal-with-zoom-anim modal-sizes">

ajax call:

var request = $.ajax({
url: "<?php echo base_url();?>index.php/admin/manageivrs/removeivr",
type: "POST",
data: "ivrid="+ivrid,
success: function (msg)
{
if(msg=='true')
{
var oTable = $('#IVRFilesTable').dataTable();
oTable.fnClearTable();
$("#IVRFilesTable").load(location.href+" #IVRFilesTable>*","");
oTable.fnDraw();

            }



        }
    });
This discussion has been closed.