fm.Sex.value=tContent2[0][3];//这个一定得是查询出来的码值
alert("获取到的值是:"+tContent2[0][3]);
showOneCodeName("sex","Sex","sexName");//这个一定得要和前端的页面的每个属性相对应
<td class="title">性别</td>
<td class="input"><input class="codeno" name="Sex"
ondblclick="return showCodeList('sex',[this,sexName],[0,1]);"
onkeyup="return showCodeListKey('sex',[this,sexName],[0,1]);"
nextcasing=><input class="codename" name="sexName"></td>