Hello everybody.

I have a script that shows a close button in my drop down menu, but instead of manually add the line to all links. Is there a way to automatic add the script to all UL links in a specified div.

The script is:
<a class="close" onclick='$(".mega-hover").removeClass();$(".sub").hide();'><img src="images/megamenu-close.png" />
Best regards,