how to use drawCallback for particular column only
how to use drawCallback for particular column only
VishnuHBS
Posts: 20Questions: 2Answers: 0
Here i'm using drawCallback with jeditable. But it show the all columns are editable, but i want 5th column only to be editable. please help me to solve this issue.
"drawCallback" : function(settings) {
$('#tableId tbody td')
.editable(
'',
{
indicator : "Saving Comments...",
tooltip : "Click to update the Comments",
type : 'textarea',
select : true,
submit : 'Comment',
cancel : 'Cancel',
cssclass : "editable",
"height" : "100px",
data : " ",
sUpdateURL : function(
value,
settings) {
$
.ajax({
type : "POST",
url : '/eselfguru/deleteEnquiry.psg?enquiryId='
+ this.parentNode.lastChild.innerHTML,
data : {
answer : value
},
complete : function(
data) {
alert("Answer Replied Successfully");
}
});
return value;
}
This discussion has been closed.
Replies
You would need to modify the selector used for jeditable. However, this is not a jeditable support forum - I would suggest asking in StackOverflow or similar if you need help with jQuery selectors.
Allan