I could not understand what this javascript line does.
chkBox.setAttribute("CheckList", range);
What is the “CheckList” attribute is used for?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There’s no defined attribute called “CheckList” for input elements. Wherever that code is, it’s setting a custom attribute on the element that it will likely access later. Some people choose this in favour of creating a global variable, but really you should stick to expando properties (if you want to avoid global vars), for example:
In Internet Explorers before version 8, setAttribute incorrectly maps to properties instead of attributes anyway.