Dropdown open

1

I would like to know if there is any property so I can leave an open dropdown on the page load, only closing if the user clicks the tab.

Note: I'm 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>
    
asked by anonymous 31.10.2016 / 00:05

1 answer

1

Add this class (.stay-open)

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

Then apply to css! important

.stay-open {display:block !important;}
    
07.11.2016 / 16:36