摘要:
//获取表单元素的名称和值function getValue(){ var elems = document.getElementById('picker').elements; var elemArray = new Object(); for(var i = 0; i < elems.length; i++){ if(elems[i].type == 'text'){ elemArray[elems[i].id] = elems[i].value; } } checkVals(elemArray); return false;}//检查值functio 阅读全文