Javascript定位表單控件的幾種方式
方式1:
document.all.year.value='2002';
方式2:
document.all["year"].value= '2002';
方式3:
document.Form1.year.value='2002';
方式4:
document.getElementById('year')='2002'
posted on 2005-07-17 17:21 MingIsMe 閱讀(228) 評論(0) 編輯 收藏 所屬分類: 02 Script/CSS