scripts/menu.js
/**
 * Check whether a Drop-Down List's selected value is "select"
 * @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 to display if validation fails
 */
Check whether a Drop-Down List's selected value is "select"
@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 to display if validation fails
Check whether a Drop - Down List ' s selected value is " select " @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 to display if validation fails
function checkValueIsSelect(ddl, errorDiv) {
	var error = false;
	var errorDivTxt = $("#" + $(errorDiv).attr('id') + "Txt");
	if($(ddl).val() == "select") {
		error = true;
		formErrorStatus = true;
	}
	checkHideShowError(errorDiv, errorDivTxt, error);
}
function checkValueIsSelect ( ddl , errorDiv ) { var error = false ; var errorDivTxt = $ ( "#" + $ ( errorDiv ) . attr ( 'id' ) + "Txt" ) ; if ( $ ( ddl ) . val ( ) == "select" ) { error = true ; formErrorStatus = true ; } checkHideShowError ( errorDiv , errorDivTxt , error ) ; }
Check whether a Drop-Down List's selected value is "select"
 @param {Object} ddl A HTML Drop-Down List to check the selected value of
 @param {Object} errorDiv A HTML div tag encapsulated by jQuery.
Check whether a Drop - Down List ' s selected value is " select " @param { Object } ddl A HTML Drop - Down List to check the selected value of @param { Object } errorDiv A HTML div tag encapsulated by jQuery .
//Display an error if the selected value was "select"; if it wasn't, hide an error (if visible)