Render column with url link + load page into div
Render column with url link + load page into div
Kenti
Posts: 1Questions: 0Answers: 0
My json file content 3 infos: Name, Firstname and file.
I want to output 3 column: a (Name); b (First name) and c (filename)
I render third Colum this ways:
"columns": [{"data": "a" },{ "data": "b" },{ "data": "c";}},"render": function (data, type, full, meta) {return '<a href="data/'+data+'.htm" title="Détails" " class="details">Détails</a>';}}],
and would like to load an htiml content in another div or article
$(document).ready( function() {
$(".details").on("click", function() {
$("#details").load($(this).attr("href")
});
});
This doesn't work.
Could you help me?
This discussion has been closed.