Creating A "Select All" Condition For A Multi-Select Filter!
Updated 03-02-2023
i have a blox widget with multiple check boxes , i am trying to create a check box which will select all the other check boxes.
$('#chk_all').on('click', function(){
if(this.checked) {
$('.chk_brand_items .checkbox').each(function(){
this.checked = true;
});
}else{
$('.chk_brand_items .checkbox').each(function(){
this.checked = false;
});
}
});