1const inputActiveElement = document.createElement('input');
2inputActiveElement.classList.add('mr-2');
3inputActiveElement.id = `active_image`;
4inputActiveElement.type = 'checkbox';
5inputActiveElement.value = '123';
6inputActiveElement.name = 'active_image[]';
7inputActiveElement.setAttribute('checked','true');
8
9const labelActiveElement = document.createElement('label');
10labelActiveElement.setAttribute('for',`active_image`);
11labelActiveElement.innerText = 'Active';
12
13const divInnerElement = document.createElement('div');
14divInnerElement.classList.add('form-inline');
15divInnerElement.classList.add('mt-2');
16divInnerElement.append(inputActiveElement, labelActiveElement);