Passing info from selected row to input values
I am using the following code to select a row in a table...
- $('#timesheet').on('click', 'tbody tr', function( event ) {
$(oTable.fnSettings().aoData).each(function () {
$(this.nTr).removeClass('row_selected');
});
console.log($(event.target.parentNode));
$(event.target.parentNode).addClass('row_selected');
form_edit.ts_Project.value = aaData[$(this.nTr)]['ts_Project'];
Once the row is selected I need to move the information from the row into fields for editing (too many issues to use makeEditable). To accomplish this I need to do something like the last line where I can pass the data from aaData based on the row selected and the known parameter (ts_Project). Doing this gives me an undefined error on aaData.
Any help is greatly appreciated.
jdadwilson