Minifycode 2021-10-03 Viewed 1.2K times Javascript

In this article, you will learn what is Using $.get while iterating through check boxes in javascript

 

var id = [];      //array to store ids from the checkboxes

var x = 0;  t

checkboxes.each(function(){ 

  if ($(this).hasClass('active')) {

    id[x] = $(this).data('orderid');

    x++; //increment

});

Using $.get while iterating through check boxes in javascript
minify code