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!
See Question&Answers more detail:osI'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!
See Question&Answers more detail:osTry this:
$("#id").parent()
My first suggestion #id:parent
doesn’t work as :parent
selects all nodes that are parent of other nodes (including text nodes).