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 <th> element.
My current script is below and working fine for all other attributes. Any help would be greatly appreciated.
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 <th> element.
My current script is below and working fine for all other attributes. Any help would be greatly appreciated.
/* 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] }; },
<table> <thead> <tr> <th col="value2"></th> </tr> </thead> <tbody> <tr id="value1"> <td></td> </tr> </tbody <table>