javascript - How to show only particular number of data and hide remaining with more link -


i want show notes of user on page want show first 200 characters , after there link of more navigate user on page. completed more link part don't know how show 200 characters , hide remaining link.

extract first 200 characters text , display in div

var smallcontent = divcontent.substr(0, 200) + ".."; 

https://jsfiddle.net/cmpbehf1/1/


Comments

Popular posts from this blog

gridview - Yii2 DataPorivider $totalSum for a column -

java - Suppress Jboss version details from HTTP error response -

Sass watch command compiles .scss files before full sftp upload -