in datatables .each() is not working for all pages.....please suggest any solution
in datatables .each() is not working for all pages.....please suggest any solution
soumick
Posts: 4Questions: 2Answers: 0
$('#example tbody tr .comment-space').each(function () {
var content = $(this).html();
if (content.length > showChar) {
var show_content = content.substr(0, showChar);
var hide_content = content.substr(showChar, content.length - showChar);
var html = show_content + '<span class="moreelipses">' + ellipsestext + '</span><span class="remaining-content"><span>' + hide_content + '</span> <a href="" class="morelink">' + moretext + '</a></span>';
$(this).html(html);
}
});
Edited by Allan - Syntax highlighting. Details on how to highlight code using markdown can be found in this guide.
This discussion has been closed.
Answers
Thanks for your question - however, per the forum rules can you link to a test case showing the issue please. This will allow the issue to be debugged.
Information on how to create a test page], if you can't provide a link to your own page can be found here.
Thanks,
Allan