-3

I am trying to teach myself jquery while reading someone else's code, and I found this line of code:

var b = $('#background .image img');

I don't see any documentation for it - any idea what it could mean?

TimWolla
  • 31,849
  • 8
  • 63
  • 96
Steven Matthews
  • 9,705
  • 45
  • 126
  • 232

2 Answers2

4

This will select elements based on that CSS-Selector: Any <img> in an element with the class image, that is in an element with the ID background

TimWolla
  • 31,849
  • 8
  • 63
  • 96
2

It selects all <img> tags inside elements with class image inside the element with id background.

gen_Eric
  • 223,194
  • 41
  • 299
  • 337