extend Jeditable example
extend Jeditable example
I'd like to know if it is possible to return a class value with the submitdata.
The example shows:
[code]
"submitdata": function ( value, settings ) {
return { "row_id": this.parentNode.getAttribute('id') };
[/code]
Id like to have something like:
[code]
"submitdata": function ( value, settings ) {
return { "row_id": this.parentNode.getAttribute('id'),
"class_id": this.Node.getAttribute('class')} ;
[/code]
The example shows:
[code]
"submitdata": function ( value, settings ) {
return { "row_id": this.parentNode.getAttribute('id') };
[/code]
Id like to have something like:
[code]
"submitdata": function ( value, settings ) {
return { "row_id": this.parentNode.getAttribute('id'),
"class_id": this.Node.getAttribute('class')} ;
[/code]
This discussion has been closed.
Replies
I don't see why not. What happens when you tried it? I think you might want this.parentNode.className for the TR class name. Drop the parentNode for the TD.
Allan
I dropped 'Node' and am now using classname, which works nicely.
[code]
"submitdata": function ( value, settings) {
return { fermentable_id": this.parentNode.getAttribute('id'),
"class_id": this.className };
[/code]
Many Thanks,
muay