I created a button that open a modal window on click.formacie HTML, jak wyłączyć <a href>?
<a href="#" data-toggle="modal" data-target="#myModal" class="signup-button gray-btn pl-pr-36" id="connectBtn" data-role="disabled">Connect</a>
For some reason the data-role="disabled"
doesn't work good. How can I disable it?
Po prostu usuń atrybut 'href'? – Oriol
Po prostu nie używaj elementu '', jeśli naprawdę nie chcesz tworzyć linków. Możesz dodać 'kursor: wskaźnik' do dowolnego elementu w CSS. – pawel
nie używaj "a" dla przycisków, nie można ich wyłączyć (nie są rodzime, tylko obejścia). Użyj znacznika 'button'. – Luizgrs