Truncate paragraph first 100 character and hide rest content of paragraph to show/hide rest contenct with more/less link

后端 未结 6 671
一向
一向 2020-12-01 03:14

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.

6条回答
  •  自闭症患者
    2020-12-01 03:50

    Have you looked at the jQuery Truncator plugin?

    It pretty much does exactly what you've described.

提交回复
热议问题