//获取选中的option的value obj1.value=obj2.options[obj2.selectedIndex].value; //option个数 deptPId.options.length