title: Jquery onclick thumbnails function.
body: <p>My friend gave me a javascript using Jquery, I don't really understand how it works especially the '.thumbnails > div'. And why the same function is being called in the same line. Can anyone paraphrase the following in english? </p>
  
  <pre><code>$(function(){
     $(document).on('click', '.thumbnails &gt; div', function(){
      var img = $(this).find('img').attr('src');
      $('.bigImage').attr('src', img);
     });
  });
  </code></pre>