Open dropdown

Asked

Viewed 193 times

1

I would like to know if there is any property so I can leave a dropdown open in the loading of the page, only closing if the user click on the tab.

Note: I am using bootstrap.

 <li>
    <a href="javascript:;" data-toggle="collapse" data-target="#demo"><i class="glyphicon glyphicon-tasks"></i>&nbsp &nbspApólices <i class="caret"></i></a>
    <ul id="demo" class="collapse">
        <li>
            <a href="#">Cadastrar Apólice</a>
        </li>
        <li>
            <a href="#">Visualizar Apólice</a>
        </li>
        <li>
            <a href="#">Editar Apólice</a>
        </li>
        <li>
            <a href="#">Excluir Apólice</a>
        </li>
        <li>
            <a href="#">Exportar como PDF</a>
        </li>
    </ul>
</li>

1 answer

1


Add this class (.Stay-open)

<ul class="dropdown-menu stay-open">

Then apply in css ! Import

.stay-open {display:block !important;}

Browser other questions tagged

You are not signed in. Login or sign up in order to post.