(function($) {
  
  $.fn.example = function(text) {    
    return this.each(function() {
      
        var $this = $(this);
           
        $this.val(text);
        
        $this.focus(function(){
            inputVal = $this.val() == text ? "" : $this.val();
            $this.val(inputVal);
        });
        $this.blur(function(){
            if( $.trim($this.val()) == "" ){
                $this.val(text);
            }
        });
      
    });
  }
  
})(jQuery);