I have a <div> that has many other <div>s within it, each at a different nesting level. Rather than give every child <div> an identifier, I rather just give the root <div> the identifier. Here’s an example:
<div class="a" id="a5">
If I write a function in jQuery to respond to class d and I want to find the ID for its parent, class a, how would I do this?