jQuery set fixed length content in div


i m stuck into one situation, i have a div having some paragraph content.
i only want to show 100 words of content in div
for example – (sometextjonty) i only want to show 7 alphabets content in div so my div now will show (sometex) text upto here . i only want to do with jquery not with css, any solutions for this. I have no any clue how to do that

echo'<div class="content textlimit"><p>'; the_content(); echo'</p></div>

here above is my content div

Creative Tim 2 months 0 Answers 10 views 0

Leave an answer