scripts/menu.js
/**
 * Show a Sub Menu for certain items when selected in a Drop-Down List,
 * e.g. specifying to input "Custom Information"
 * @param {Object} ddl A HTML Drop-Down List to check the selected value of
 * @param {Object} errorDiv A HTML div tag encapsulated by jQuery. Contains an error
 *				   message that may be currently displayed if input validation
 *				   previously failed
 * @param {Object} subMenu A jQuery encapsulated HTML div tag. Contains the Sub Menu
 *				   content to potentially be displayed
 */
Show a Sub Menu for certain items when selected in a Drop-Down List,
e.g. specifying to input "Custom Information"
@param {Object} ddl A HTML Drop-Down List to check the selected value of
@param {Object} errorDiv A HTML div tag encapsulated by jQuery. Contains an error
message that may be currently displayed if input validation
previously failed
@param {Object} subMenu A jQuery encapsulated HTML div tag. Contains the Sub Menu
content to potentially be displayed
Show a Sub Menu for certain items when selected in a Drop - Down List e . g . specifying to input " Custom Information " @param { Object } ddl A HTML Drop - Down List to check the selected value of @param { Object } errorDiv A HTML div tag encapsulated by jQuery . Contains an error message that may be currently displayed if input validation previously failed @param { Object } subMenu A jQuery encapsulated HTML div tag . Contains the Sub Menu content to potentially be displayed
function showSubMenu(ddl, errorDiv, subMenu) {
	errorDiv.children(".errorTxt:gt(0)").each(function() {
		checkHideShowError(errorDiv, $(this), false);
	});
	checkValueIsSelect(ddl, errorDiv);
	showSectionSubMenu(ddl, subMenu, "custom");
}
function showSubMenu ( ddl , errorDiv , subMenu ) { errorDiv . children ( ".errorTxt:gt(0)" ) . each ( function ( ) { checkHideShowError ( errorDiv , $ ( this ) , false ) ; } ) ; checkValueIsSelect ( ddl , errorDiv ) ; showSectionSubMenu ( ddl , subMenu , "custom" ) ; }
Show a Sub Menu for certain items when selected in a Drop-Down List,
 e.g.
Show a Sub Menu for certain items when selected in a Drop - Down List e . g .
//Check whether to the value of ddl satisfies removing the no-value-selected error (if applicable) //Potentially show a Sub Menu for entering Custom Information