I\'ve got an element which resides inside a div. I\'d like to get the div by the child\'s ID, is this possible? if so how?
Thank you!
Use the parent
method of jQuery:
$("#myChild").parent()
You can even give it a selector if the parent element you're looking for is not the direct parent:
$("#myChild").parent(".container")
There's a slew of functions that help you traverse the DOM, and you can find detailed information in the jQuery reference.