how to access child img src in jquery

JavaScript
$('#carousel div').click(function(event) {
  alert($(this).find('img').attr('src'));
});
Source

Also in JavaScript: