I would like this return to return the entire string that contains the variable data.notes. Right now it just gives me back the first word. As soon as it reaches the first blank space, it cuts. I am using Bootsrap 3 tooltip on datatables. What I do is that in a column of the table the content of the column is shown with a tooltip that in this case is from bootstrap.
Example:data.notas="hola como estas";
result: hello
"columns": [
{"data": null,
"render": function (data, type, full, meta)
{
return "<span data-toggle='tooltip' data-placement='bottom' title= Notas:" +
data.notas + ">" + data.name + "</span>";
}
},
{"data": "colab_name"}
]
You are missing the quotes for the attribute
title
, if they only the first word you put is taken into account, the rest are assumed to be other attributes:To avoid these errors I recommend the use of string templates :