How to hide/show more text within a certain length (like youtube)

前端 未结 14 712
说谎
说谎 2020-11-28 21:24

I want to have a text to only be a certain amount of characters/length and after that length, I want to put a link to reveal the full length of the text.

The link w

14条回答
  •  执笔经年
    2020-11-28 22:18

    Put text inside Your Text Here and copy the script inside your js file. You are ready to go. Working code for see more.. and see less.. options. Works for dynamic as well as static texts

    Your Text Here

提交回复
热议问题