jquery limit text by length

前端 未结 6 1418
走了就别回头了
走了就别回头了 2020-12-16 18:46

Can i hide text in a DIV after a number of characters with jQuery?

So far I think it would go something like this - jQuery would cycle through the text until it gets

6条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-16 19:04

    This will hide a part of the text

    
    
    
    
        
    
        untitled
        
        
        
    
    
    
    

    Some lenghty string goes here

提交回复
热议问题