I'm using Jquery V1.11.1 in my application. I have a HTML table which looks like this:
<table id="permissions"> <tr> <td></td> <th>Administrators</th> <th>Moderators</th> </tr> <tr> <th class="aco">controllers/users/display</th> <td class="permission">Allowed</td> <td class="permission">Denied</td> </tr> </table>
When you click on "Allowed" or "Denied" I want to select the TH tag which contains the ACO.
I thought this would do it, but it doesnt.
What is the best way to select the TH tag using Jquery in this situation?