2
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, that must be because I’m calling for id
, but I don’t know what to call for the class, I tried to change this code but it doesn’t make the button on the side disappear. I used the $(t).hide();
also, but it climbs the button itself. This is inside a function that by clicking the button will run this code.
I’ve tested this code before, but I don’t know why it doesn’t work on my
– Ketlin