geting the first image under div in html code example Example: get first image in div $('.m-carousel-inner').find('img:first');