test
test2
The sample function of test and test2 and html are:
..... function test() { alert('isArray='+isArray(document.getElementById('t1'))); alert(document.getElementById('t1').value); } function test2() { alert('isArray='+isArray(document.getElementsByTagName('input'))); var eles = document.getElementsByTagName('input'); var output = ""; for(i=0;i