Mobile (bx5) checkbox Select all / deselect function

problem description

list binds data components to loop out three messages, all of which have a separate checkbox, placed under the same level div of checkbox, and list. How to use checkbox under div to achieve all / deselect functions. There is no way to get the data length in list by using this.comp.

the environmental background of the problems and what methods you have tried

bex5_V3.8 development tools

related codes

/ / Please paste the code text below (do not replace the code with pictures)
var ckAll=this.comp ("checkAll");
var ck=this.comp ("checkbox");

if (ckAll.checkedValue=1) {

for(var i=0;i<ck.length;iPP)
    ck[i].checkedValue=true;

} else if (ckAll.checkedValue=0) {

for(var j=0;j<ck.length;jPP)
    ck[j].checkedValue=false;

}

what result do you expect? What is the error message actually seen?

when you click on the checkbox component of the checkAll name, you can change all the traversed checkbox on the page to the selected state

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b365b2-2bffe.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b365b2-2bffe.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?