1
So guys, I created a modal as follows:
<div class="modal fade" id="#siteModal" tabindex="-1" role="dialog">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">Softwares</h5>
<button type="button" class="close" data-dismiss="modal">
<span>×</span>
</button>
</div>
<div class="modal-body">
<p>...</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">CERTO</button>
</div>
</div>
</div>
</div>
But when I make the following call:
<a href="#" class="card-link mb-1 txt btn btn-outline-dark" data-toggle="modal" data-target="#siteModal">SAIBA MAIS</a>
The modal is not called, because it is conflicting with the layout one-page style, because it is using the id="#" which is equal to the href of the link that will call the modal. How do I make the modal appear? Any suggestions? Because when I click on the button it plays to the top of the site, obeying the id="#"
There’s no trading this href for anything else?
– Lucas de Carvalho
Change the # by
javascript:void(0)
– Sam