I have a table which has tasks with several statuses, user can use filter check-boxes to show and hide rows based on these status filters. function toggleRows(checkBox, img) {    var show = $(# + checkBox).prop(checked);    var rows = $('tr img[src=../_layouts/15/images/' + img + '.png]').closest('tr')    if (show) {        rows.show();    }    else {        rows.hide();    }}Implementation can be,toggleRows(taskFinishedCb, finished);I would put table's code too but I am not allowed to touch that and only code above needs to be improved.
Toggle based on checkbox
javascript;jquery