Inputting "Other" Data From Pull-Down Menu from Porter's Workshop This is a simple example of a way to allow data to be entered into a text field only when a specific value is selected in a pull-down menu. It uses the onFocus event of the text field to check the value of the pull-down, and calls its blur() function if the menu isn't on "Other." It also uses the onChange event of the pull-down to clear the value of the text field if "Other" is deselected, and reloads the previous contents if they reselect "Other." |