I want to have a text to only be a certain amount of characters/length and after that length, I want to put a link to reveal the full length of the text.
The link w
You can use like this
$(".jsgrid-cell").each(function(i,v){ var txt=$(v).text(); if(txt.length>100){ var shortText=txt.substring(0, 100)+ ""+ "..."+ ""+ ""+ txt.substring(100, txt.length)+ ""; $(v).html(shortText ); } });