jQuery text truncation (read more style)
My question is very similar to " Trim text to 340 chars " but in jQuery . It sounded very straight forward but when I searched around I couldn't find any reference for it. Ok, I have a div $('#content') I want to trim the text to 'x' amount of characters lets say '600' BUT I don't want it to break the word it self! Like NOT ' The Ques... ' BUT ' The Questions... '. What happens to the rest of the text? Well, I hide it and will show it on request! But wait, it should first remove the ' ... ' and show the text right after where it hid. Here is the sample structure for $('#content'): <div id=