get first word in div jquery code example
Example 1: get the first word from a string jquery
$('element').text().split(' ')[0]
Example 2: get first image in div
$('.m-carousel-inner').find('img:first');
$('element').text().split(' ')[0]
$('.m-carousel-inner').find('img:first');