<<div class="expert-summary">> @Model.Summary data <<a href="#" class="readMoreLink">>Read More<</a>> <</div>> Js Code function hideLinkIfNoTruncation(isTruncated, origContent) { if (!isTruncated) { $('.readMoreLink', this).remove(); } } function clicked() { var div = $(this).closest('.expert-summary'); div.trigger('destroy').find('.readMoreLink').remove(); div.height('auto'); return false; } $(document).ready(function () { $(".expert-summary").dotdotdot({ after: "a.readMoreLink", callback: hideLinkIfNoTruncation }); $('a.readMoreLink').on('click', clicked); }); Not maintain styles until end of the pagination
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)