add select type in fnadddata
add select type in fnadddata
I have a datatable with lots of rows. I need to add a new row to the datatable (just client side, I want to use ajax to insert that new row in mysql). Most of the data I want to add in the columns are select-lists (which are retrived from mysql). My current add row function looks like this:
[code]
function fnAddRow() {
var addData = {
"sno": "",
"project": "",
"year": "20122013", };
oTable.fnAddData(addData);
}
[/code]
The data for 'project' shld come from a mysql table. How do I add that? Please help!! Thanks in advance.
[code]
function fnAddRow() {
var addData = {
"sno": "",
"project": "",
"year": "20122013", };
oTable.fnAddData(addData);
}
[/code]
The data for 'project' shld come from a mysql table. How do I add that? Please help!! Thanks in advance.
This discussion has been closed.