title: Delete multiple data in laravel using checkbox and disabled button when buttons are not checked
body: <p>I am facing a little problem with multiple delete in Laravel. Whenever I did not check a checkbox I want the button to be disabled and vice-versa.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>$(document).ready(function() {
    //$("#btn_del").click(function() {
    //  $("#btn_del").prop("disabled", true);
    //})
  
    $('.ids').click(function() {
      var multiple_contact = [];    
        $('input:checkbox[name="multiple_contact[]"]:checked').each(function() {
        multiple_contact.push($(this).val());
      });
  
      var length = multiple_contact.length;
      if (length &gt; 0) {
        $('#btn_del').attr('disabled', true);
        // $(".delete_contact").addClass();
      } else {
        // $(".delete_contact").removeClass();
        $('#btn_del').attr('disabled', false);
      }
  
      /*if ($(this).is(':checked')) {
        $('#btn_del').prop("disabled", false);
      } else {
        if ($('.checks').filter(':checked').length &lt; 1) {
          $('#btn_del').attr('disabled',true);
        }
      } */
    });
  });</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;input type="checkbox" class="form-check-input  ids" name="multiple_contact[]" value="{{$admin_getcontact-&gt;id}}"&gt;
  &lt;button type="button" class="btn btn-success delete_contact" data-toggle="modal" data-target="#modalMultipleContactDelete" id="btn_del"&gt;Delete Multiple Contact Messages&lt;/button&gt;</code></pre>
  </div>
  </div>
  </p>