Just getting the hang of css and jQuery, I'm utilizing a CSS class named .content
for various elements on my webpage like side navigation box, picture of the day box, statistics box, etc., all laid out using definition lists.
Now, when I click on the <dt>
tag, I want it to slide up/down the <ul>
tag beneath it, which is pretty straightforward. However, I'm unsure how to identify which instance of the .content
class was clicked on...Using separate ids could work but I'm curious if there's a more efficient method. Hoping I've explained my issue clearly enough, any assistance would be greatly appreciated!
Many thanks in advance!