• Hey everybody.

    I would like to add this line after the

      in my menu:

    <a class="close" onclick='$(".mega-hover").removeClass();$(".sub").hide();'><img src="images/megamenu-close.png" /></a>

    So the final output would be like this:

    <li><a href="#">Menu 1</a></li>
    <li><a href="#">Menu 2</a>
    <strong><ul><a class="close" onclick='$(".mega-hover").removeClass();$(".sub").hide();'><img src="images/megamenu-close.png" /></a></strong>
    
    <li><a href="#">Submenu</a>
    <ul>
    <li><a href="#">Product 1</a></li>
    <li><a href="#">Product 2</a></li>
    <li><a href="#">Product 3</a></li>
    </ul>
    </li>

    This add’s a close button to my dropdown menu. I just need a way to automatically add it.

    Please help 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Add script after in dropdown menu’ is closed to new replies.