code: function(elem) {
  			elem = $(elem);
  			if (!elem.hasClass(this._getMarker())) {
  				return;
  			}
  			var inst = this._getInst(elem);
  			if (inst.inline) {
  				var inline = elem.children(':last');
  				var offset = inline.offset();
  				var relOffset = {left: 0, top: 0};
  				inline.parents().each(function() {
  					if ($(this).css('position') === 'relative') {
  						relOffset = $(this).offset();
  						return false;
  					}
  				});
  				var zIndex = elem.css('zIndex');
  				zIndex = (zIndex === 'auto' ? 0 : parseInt(zIndex, 10)) + 1;
  				elem.prepend('<div class="' + this._disableClass + '" style="' +
  					'width: ' + inline.outerWidth() + 'px; height: ' + inline.outerHeight() +
  					'px; left: ' + (offset.left - relOffset.left) + 'px; top: ' +
  					(offset.top - relOffset.top) + 'px; z-index: ' + zIndex + '"></div>').
  					find('button,select').prop('disabled', true).end().
  					find('a').removeAttr('href');
  			}
  			else {
  				elem.prop('disabled', true);
  				inst.trigger.filter('button.' + this._triggerClass).prop('disabled', true).end().
  					filter('img.' + this._triggerClass).css({opacity: '0.5', cursor: 'default'});
  			}
  			this._disabled = $.map(this._disabled,
  				function(value) { return (value === elem[0] ? null : value); }); // Delete entry
  			this._disabled.push(elem[0]);
  		}
docs: Disable the control.
  @memberof CalendarsPicker
  @param elem {Element} The control to affect.
  @example $(selector).datepick('disable')