add select type in fnadddata

add select type in fnadddata

MaddyMaddy Posts: 24Questions: 0Answers: 0
edited September 2012 in General
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.
This discussion has been closed.