How to keep a menu item temporarily disabled on the site?
<li><a href='cadastrar.php'>CADASTRAR</a></li>
Thank you.
How to keep a menu item temporarily disabled on the site?
<li><a href='cadastrar.php'>CADASTRAR</a></li>
Thank you.
You can disable the default action by JavaScript .
With jQuery:
$("a[href='cadastrar.php']").click(function (e) {
e.preventDefault();
});
With native JavaScript:
var el = document.querySelectorAll("a[href='cadastrar.php']");
el[0].addEventListener("click", function(e){
e.preventDefault();
});
You can do this with css and leaving no link within the href:
.link{
cursor:auto;
}
<li><a class="link" href='#'>CADASTRAR</a></li>