get the first word from a string jquery

JavaScript
$('element').text().split(' ')[0] 
Source

Also in JavaScript: