How to trim text after 300 words?



Salute!
The task seems simple, but I'm in JS/JQ zero, actually - you need to crop the text after 300 words with an ellipsis at the end, by pressing on button fell out the rest of the text and at the end there is a collapse button to return to the original state.

I would be very grateful for the help!
March 20th 20 at 11:52
1 answer
March 20th 20 at 11:54
Solution
thank you, and a collapse button? - marcelina.Bruen commented on March 20th 20 at 11:57
@Ena.Treutel, a Second, corrected - Zola_Johnson commented on March 20th 20 at 12:00
@Ena.Treutel, Corrected - Zola_Johnson commented on March 20th 20 at 12:03
@deondre.Fadel, thank you very much! - marcelina.Bruen commented on March 20th 20 at 12:06

Find more questions by tags jQuery