javascript - How to differentiate betwen HTMLCollection and HTMLInputElement in IE? -


I have a list of input elements (checkboxes) that are dynamic, sometimes it has an element, Sometimes more. How can I check in IE that the object is an example of HTMLInputElement or HTMLCollection?

If you do not have any specific feature of HTMLCollection and your input name is Document.form.checkbox_name , you can use it to be used as an array below:

  var chkarr = document Form.checkbox_name; If (chkarr.length == undefined) {Chakarar = [Chakkarar]; } Chakar [0]. Checked = true; // .. etc  

Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

lua - HowTo create a fuel bar -