Advertisement
4_2005-2006 Controls/ Forms/ Graphics/ Menus #159408

Show/hide form element

Show or hide form elements based on the value selected in a dropdown menu.

AI

สรุปโดย AI: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

ซอร์สโค้ด
original-source
Sample web page showing the use of switch statements and the selectedindex property in javascript. If you try to return the selected index property directly you will only get -1 or 0 (equates to false or true).
Make sure that the default displayed item matches the default settings in the switch statement.
ความคิดเห็นดั้งเดิม (3)
กู้คืนจาก Wayback Machine