replace first word of text html element jq code example Example: get the first word from a string jquery $('element').text().split(' ')[0]