Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

get the first word from a string jquery

$('element').text().split(' ')[0] 
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #word #string #jquery
ADD COMMENT
Topic
Name
5+8 =