public/libs/jquery.selectbox.js
function (target) {
			var inst = this._getInst(target);
			//if (!inst || !this._state[inst.uid]) {
			if (!inst || !inst.isOpen) {
				return;
			}
			var onClose = this._get(inst, 'onClose');
			inst.settings.effect === "fade" ? $("#sbOptions_" + inst.uid).fadeOut(inst.settings.speed) : $("#sbOptions_" + inst.uid).slideUp(inst.settings.speed);
			$("#sbToggle_" + inst.uid).removeClass(inst.settings.classToggleOpen);
			var holder = $("#sbHolder_" + inst.uid);
			holder.removeClass('open');
			holder.addClass('closed');
			this._state[inst.uid] = FALSE;
			inst.isOpen = FALSE;
			if (onClose) {
				onClose.apply((inst.input ? inst.input[0] : null), [inst]);
			}
			$.data(target, PROP_NAME, inst);
		}
function (target) {
			var inst = this._getInst(target);
			//if (!inst || !this._state[inst.uid]) {
			if (!inst || !inst.isOpen) {
				return;
			}
			var onClose = this._get(inst, 'onClose');
			inst.settings.effect === "fade" ? $("#sbOptions_" + inst.uid).fadeOut(inst.settings.speed) : $("#sbOptions_" + inst.uid).slideUp(inst.settings.speed);
			$("#sbToggle_" + inst.uid).removeClass(inst.settings.classToggleOpen);
			var holder = $("#sbHolder_" + inst.uid);
			holder.removeClass('open');
			holder.addClass('closed');
			this._state[inst.uid] = FALSE;
			inst.isOpen = FALSE;
			if (onClose) {
				onClose.apply((inst.input ? inst.input[0] : null), [inst]);
			}
			$.data(target, PROP_NAME, inst);
		}
function ( target ) { var inst = this . _getInst ( target ) ; //if (!inst || !this._state[inst.uid]) {
 if ( ! inst || ! inst . isOpen ) { return ; } var onClose = this . _get ( inst , 'onClose' ) ; inst . settings . effect === "fade" ? $ ( "#sbOptions_" + inst . uid ) . fadeOut ( inst . settings . speed ) : $ ( "#sbOptions_" + inst . uid ) . slideUp ( inst . settings . speed ) ; $ ( "#sbToggle_" + inst . uid ) . removeClass ( inst . settings . classToggleOpen ) ; var holder = $ ( "#sbHolder_" + inst . uid ) ; holder . removeClass ( 'open' ) ; holder . addClass ( 'closed' ) ; this . _state [ inst . uid ] = FALSE ; inst . isOpen = FALSE ; if ( onClose ) { onClose . apply ( ( inst . input ? inst . input [ 0 ] : null ) , [ inst ] ) ; } $ . data ( target , PROP_NAME , inst ) ; }
Close opened selectbox

@param {HTMLElement} target
Close opened selectbox