Truncate paragraph first 100 character and hide rest content of paragraph to show/hide rest contenct with more/less link
问题 I have paragraph which has more than 500 character. I want to get only initial 100 character and hide rest of it. Also I want to insert "More" link next to 100 character. On click of more link whole paragraph should display and edit text "More" to "Less" and on click "Less" it should toggle behavior. Paragraph is dynamically generated I cant wrap content of it using .wrap(). Here is example what I have and what I want. This is what I have : <p>It is a long established fact that a reader will