How to find the attribute at col in ?

How to find the attribute at col in ?

parksieparksie Posts: 2Questions: 0Answers: 0
edited March 2013 in General
Hi,

I have the following Table setup and am using DataTable/Jeditable to display up the value. I am having issue finding the value of the attribute 'col' in the element.

My current script is below and working fine for all other attributes. Any help would be greatly appreciated.

[code]/* Apply the jEditable handlers to the table */
$('td', oTable.fnGetNodes()).editable( 'ProjectTimeTableUpdater.jsp', {
"callback": function( sValue, y ) {
var aPos = oTable.fnGetPosition( this );
oTable.fnUpdate( sValue, aPos[0], aPos[1] );
},
"submitdata": function ( value, settings ) {

return {
"row_id": this.parentNode.getAttribute('id'),
"id": this.getAttribute('id'),
"colName": this.getAttribute('row'),
"colName": $('th').attr('col'),
"column": oTable.fnGetPosition( this )[2]
};
},
[/code]

[code]
This discussion has been closed.