Sign-up....

怎样设置select被disable

分别有一个checkbox,select

当checkbox被选中时,select的下拉框被屏蔽(disabled)

否则,可以自由下拉select

<select name=days size=1 enabled=false>

<option value=1<% if daystemp=1 then %> selected<% end if %>>1</option>

<option value=2<% if daystemp=2 then %> selected<% end if %>>2</option>

</select>

<input type="checkbox" name="dispdays" value="1" >Display Dates

[337 byte] By [msdn] at [2007-8-15 10:00:46]
# 1 Re: 怎样设置select被disable

<select name=days size=1 disabled>

<option value=1<% if daystemp=1 then %> selected<% end if %>>1</option>

<option value=2<% if daystemp=2 then %> selected<% end if %>>2</option>

</select>

<input type="checkbox" name="dispdays" value="1" onClick="document.form1.days.disabled=false">Display Dates

freejanker at 2006-6-7 15:08:20 >
# 2 Re: 怎样设置select被disable

enabled=false ==> disabled

xuStanly at 2006-6-7 17:18:09 >

Web

All Classified