JSFiddle - React, Tailwind, and code Playground

by thallysondias

HTML

<div class="actions-table checkbox-action">
<input type="checkbox"  value="1" checked/><br />
<input type="checkbox"  value="2" /><br />
<input type="checkbox"  value="3" /><br />
</div>

<input type="submit" name="commit" value="Remover Selecionados" class="btn button" data-confirm="Esta operação é irreversível, deseja apagar todas as mídias selecionados" data-disable-with="Remover Selecionados">

JavaScript

$('input[type=checkbox]').on('change', function(){
        if($('.actions-table input[type=checkbox]').is(':checked') == true) {
          $('input[type=submit]').prop('disabled', false);
        } else {
          $('input[type=submit]').prop('disabled', true);
        }
      });