Mostafa Elkady
Mostafa Elkady

Reputation: 5801

how i can Toggle this ul by jquery

please any one can slideToggle this ul i use the jquery

<ul id="flags_16">
    <li>
        <a href="#" class="nb">
            <img src="en.png" class="imgvatb">langs</a>

        <ul style="display: none;">
        <li>
            <a href="en" class="nb">
                <img src="en.png" class="imgvatb"> english</a>
        </li>
    </ul>

</li>       

Upvotes: 0

Views: 261

Answers (1)

miku
miku

Reputation: 188234

If you have a link in your page, for example with the id 'list_toggle', then something like this should work:

$("#list_toggle").click(function () {
    $("#flags_16").slideToggle("slow");
});

More examples: http://docs.jquery.com/Effects/slideToggle

Upvotes: 2

Related Questions