This is my existing work. I made it to limit the characters up to 30 but how would I add a read more link to my other page dynamically when characters exceed the limit? i need your help guys.
var myDiv = $('.wwdtext'); myDiv.text(myDiv.text().substring(0,30)) <div style="background-color:#FF6201;width:220px;height:220px"> <div class="wwdtext">Hello WorldHello WorldHello WorldHello WorldHello WorldHello WorldHello WorldHello WorldHello WorldHello WorldHello WorldHello WorldHello World</div> </div>
truncated = truncated.substr(0,maxLength) + '<span class="more">...</span><span style="display:none">'+truncated.substr(maxLength)+'</span>';- now wire up class more to show next sibling