the expression below is wrong you can’t set the data-id on select from the list
as current CheckBoxList item/index changes on each iteration
<?php echo $form->checkBoxList($model, 'category', $categories_list, array('data-id' => $index)); ?>
// output of this will be
<select data-id="1">
...
</select>