mRender is wrapping return in quotes
mRender is wrapping return in quotes
I'm using mRender to add a checkbox to a column. On one page this works fine but on another the HTML text shows in the column. If I inspect the DOM the input tag is wrapped with quotes.
Why would mRender wrap the return in quotes?
I'm using this ...
"mRender": function (data, type, full) {
if (data == "1") {
return '';
} else {
return '';
}
}
In the DOM the contains ... Note the surrounding quotes, this causes the text to show instead of the HTML to be rendered.
""
Any help will be appreciated. I can not provide a link to my pages.
Why would mRender wrap the return in quotes?
I'm using this ...
"mRender": function (data, type, full) {
if (data == "1") {
return '';
} else {
return '';
}
}
In the DOM the contains ... Note the surrounding quotes, this causes the text to show instead of the HTML to be rendered.
""
Any help will be appreciated. I can not provide a link to my pages.
This discussion has been closed.
Replies
I've tried mRender and fnRender. Both with the same result on one page but not on another.
I even tried placing the HTML directly into aaData, it still rendered as text.
Allan