display first 10 words from a string in jquery code example Example: get the first word from a string jquery $('element').text().split(' ')[0]