I have a list that when I click on an item it receives a focus and a div with information appears. One of this information has a link but when I click on it, my div closes and does not open the page.
Follow the code ...
Full HTML:
<html>
<head>
<style>
li .faq-content-answer{
display: none;
padding: 0px;
}
li:focus .faq-content-answer{
display: block;
}
.faq-content-answer p{
display: none;
}
li:focus .faq-content-answer p{
display: block;
padding: 18px 0 20px 0;
}
</style>
</head>
<body>
<ul>
<li tabindex="0">Como me cadastrar?
<div class="faq-content-answer"><p>Para se cadastrar, <a target="_blank" href="link-clicavel">Clique aqui</a>
Nós enviaremos um e-mail com as suas informações e se elas estiverem corretas, é só confirmar a aproveitar!</p>
</div>
</li>
</ul>
<body>
</html>
How can I make href work when I click?