In my content management system, there is a checkbox on every item in the list, either to edit, delete, or view. It turns out that this button appears all the time, and if the user does not check anything, it is practically useless .
I would like that when a checkbox is checked, the button will appear, and if there is no checkbox, it will disappear. Ah, if possible, a simple effect of fadeIn and fadeOut.
<input type="checkbox" id="checkbox" name="deletar" value="<?php echo $row['id']; ?> " />
Button HTML that should appear after:
<input type="submit" class="excluir-varios" value="Excluir selecionados" onClick="return confirm('Deseja realmente deletar os artigos selecionados?')">