How to get the children of the $(this) selector?
Asked 07 September, 2021
Viewed 1.7K times
  • 58
Votes

I have a layout similar to this:

<div id="..."><img src="..."></div>

and would like to use a jQuery selector to select the child img inside the div on click.

To get the div, I've got this selector:

$(this)

How can I get the child img using a selector?

19 Answer