I need to run two functions with onClick, but I'm not getting it, could anyone help me? I want to hide the parent div "introductionAds" and show the "showID" div
function ocultar(ocultarID){
document.getElementById(ocultarID).style.display='none';
}
function mostrar(mostrarID){
document.getElementById(mostrarID).style.display='block';
}
.disabled {
text-decoration: none;
color: gray;
cursor: default;
}
<div id='introductionAds'>
<ul>
<li><a href="" target='_blank' class='' id="link1"> Link habilitado </a></li>
<li><a href="" target='_blank' class='disabled' id="link2"> Link habilitado </a></li>
<li><a href="" target='_blank' class='disabled' id="link3"> Link habilitado </a></li>
<li><a href="" target='_blank' class='disabled' id="link4"> Link habilitado </a></li>
<li><a href="" target='_blank' class='disabled' id="link5" onclick="this.onclick=function(){mostrar('mostrarID');ocultar('introductionAds');}"> Link habilitado </a></li>
</ul>
<div>
<div id='mostrarID' style='display:none;'>aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa</div>