Published
- 1 min read
create a new input with type checkbox javascript
The solution for this is noted below
create a new input with type checkbox javascript
Solution
const newInput = document.createElement('input')
newInput.type = 'checkbox'
Try other methods by searching on the site. That is if this doesn’t work