function setCodes(){ var result= submitAjaxFileds('getCodes.htm','','client','product','item',false); if(result){ var vals=result.split("|"); if(vals.length==2){ document.getElementById("price").value=vals[0]; document.getElementById("description").value=vals[1]; } } }
2、绑定事件,如
With.AddSelect("item","客户货号","") .Attribute = "onchange='setCodes()'" End With