IM使用Django和我有日期的列表從列表中創建一個組合框
list = ["2014-10-26","2010-05-05","1991-12-12" ... ] #This list may grow
我想創建具有日期使用兩條組合框:
combobox1 = 2014-10-26
2010-05-05
1991-12-12
combobox2 = 2010-05-05
1991-12-12
,當你選擇一個日期在combobox2中的combobox1中選定的所有日期消失之後,有沒有辦法做到這一點?謝謝!
編輯:
list = ["2014-10-26","2010-05-05","1991-12-12","2015-11-26","200-05-05","1999-12-12"]
combobox1
2014-10-26
2010-05-05
1991-12-12
2015-11-26
2000-05-05
1999-12-12
user choose 1991-12-12, in the combobox2 will be like
combobox2:
2015-11-26
2000-05-05
1999-12-12
需要一些更多的上下文...你是什麼意思的消失,請給出一個例子...也許加入你打算用它來幫助太 – cdvv7788 2014-10-27 03:38:39
再讀一遍:) – Hook 2014-10-27 04:00:21