Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82819

Data Not Updated in Data Editor

$
0
0

Hi, Since i using data editor it add the data and delete data perfectly but i am not able to update the data when i enter the data into the fields they does not change, so what should i do?

Only problem is occurred in updating the records only.

Script that i am using is as follow:

var editor;

$(document).ready(function(){
editor = new $.fn.dataTable.Editor( {
ajax: 'editor_student.php',
table: '#example',
fields: [
{ label: 'School name', name: 'school_name' },
{ label: 'School Contact name', name: 'contact' },
{ label: 'School Email', name: 'email' }
]
});
$('#example').DataTable( {
ajax: 'editor_student.php',
dom: 'Bfrtip',
columns: [
{ data: 'school_name' },
{ data: 'contact' },
{ data: 'email' },
],
select: true,
buttons: [
{ extend: 'create', editor: editor },
{ extend: 'edit', editor: editor },
{ extend: 'remove', editor: editor }
]
} );
});


Viewing all articles
Browse latest Browse all 82819

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>