Im trying to add the following code in java script into a loop.
$('#items').find('input').prop('disabled', this.checked);
i want to change the 'items' variable as '#items1', '#items2', '#items3' and so on as a loop.
This code has already worked in this part of my code
var checkList = document.getElementById('list1');
when added to loop to get 'list1', 'list2', 'list3'
var checkList = document.getElementById('list'+list[i].value);
but it doesnt work for the 'items' in previous code may be because there is a # in front. Please help me with it.