2013-10-31 24 views

回答

0

我知道當從下拉菜單中進行選擇時,您可以使其他項目如下拉菜單,文本框,單選按鈕等可見。因此,如果用戶選擇咖啡,單選按鈕會出現在帶有咖啡/普通紙的複選框以及帶有奶油,糖等的複選框中。

以下腳本來自具有紙張選擇並基於紙張選擇的紙張重量在一個下拉列表中變得可見。

**This code in java script place in the mouse exit** 

if (Paperdropdownlist.rawValue == "Astrobrights") { 
     Astrobrightweight.presence = "visible"; 
} else { 
Astrobrightweight.presence = "invisible";   
} 

**this script was in the form ready of the drop down that would become visible** 

if (Paperdropdownlist.rawValue == "Astrobrights") { 
     Astrobrightweight.presence = "visible"; 
} else { 
Astrobrightweight.presence = "invisible";   
} 
相關問題