getElementById的问题
表单中有两个select控件 
 假如:var   i=0;   
  <select   name= 's "+i+ "    'id= 's "+i+ " '   height= '10 '   width= '50 '      onChange= 'getSort(this); '>  </select>    
  <select      id= 'ss "+i+ " '   height= '10 '   width= '50 '>  </select>  ";   
 函数 
 function   getSort(thisSelect) 
 {	 
 	var   name   =   thisSelect.name; 
 	var   aa   =    's '+name 
    	//aa等于ss0 
       	var   goods   =   document.getElementById(aa);   //这里获得的是第二个select控件        	       
 } 
 请问:goods获得的应该是第二个select控件,但在这里怎么是空呢?请高人能不能根据我给的题意帮我解决一下,谢谢!     
------解决方案--------------------var name = thisSelect.name;//不要用name,用id 
 改成这样 var name=thisSelect.id //虽然没有id,但指定name后,浏览器会自动为对象添加id=name的值