check = document.getElementsByTagName('item[]') What is written here is wrong
can be corrected to: check = document.getElementsByTagName('input')
check = document.getElementsByTagName('item[]') What is written here is wrong
can be corrected to: check = document.getElementsByTagName('input')