I have a button that when clicking will disappear the button on the side. For this I have this code:
document.getElementById("idBotao").style.display="none";
HTML:
<div id="idBotao">
<a href="javascript:void(0);" id="$l->img_id ?>" class="btn btn-labeled btn-default pull-right semEmi"> <span class="btn-label"><i class="fa fa-check-square-o"></i></span><?= $this->lang->line("con_inflaud_afe_semEmi"); ?></a>
</div>
But it only works once, this must be because I am calling through id
, but I do not know how I can call the class, I tried to change this code but it does not make the side button disappear. I used $(t).hide();
also, but it does go up the button itself. This is inside a function that when clicking the button will execute this code.