I have a column in the table consists of checkboxes, I need to check whether all the checkboxes are disabled.
Here is my code
var checkBoxTdSize = $('.hrchy-dt-checkboxes').length;
var checkedFlag=false;
for(var t=0;t<checkBoxTdSize;t++){
var chk = $(this).find('.hrchy-dt-checkboxes')[t];
if ($(chk).prop('disabled')==true){
checkedFlag=true;
}else{
alert('Please Map all the Hierarchy..!');
}
}
if(checkedFlag){
//Some Code
}
But from the above code I always get alert "Please Map all the Hierarchy..!".
Help is appreciated, Thanks