(function($) {
    $.fn.defaultify = function(options) {
        var settings = {
            'defaultValue'         : ''
        };
        /**
         * Iterate through the collection of elements and
         * return the object to preserve method chaining
         */
        return this.each(function() {
            /**
             * Apply defaults
             */
            if ( options ) { 
                $.extend( settings, options );
            }
            /**
             * Wrap the current element in an instance of jQuery
             */
            var $this = $(this);
            /**
             * Set the initial value
            */
            $this.val(options.defaultValue);
            /**
             * Do our kick-ass thing
             */
            $this.focus(function(e) {
                if ($.trim($this.val()) == options.defaultValue) $this.val("");
            });
            $this.blur(function(e) {
                if ($.trim($this.val()) == "") $this.val(options.defaultValue);
            });
        });
    };
})(jQuery);
