get the first word from a string jquery

Solutions on MaxInterview for get the first word from a string jquery by the best coders in the world

showing results for - "get the first word from a string jquery"
Camilo
30 Aug 2018
1$('element').text().split(' ')[0] 
Thiago
24 Jul 2017
1$('element').text().split(' ')[0];