-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
  • 30,523
  • 8
  • 64
  • 89
Steven Matthews
  • 9,141
  • 40
  • 114
  • 203

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
  • 30,523
  • 8
  • 64
  • 89
2

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

gen_Eric
  • 214,658
  • 40
  • 293
  • 332