(function ($) {
jQuery.fn.clearme = function (options) {
var opts = $.extend({},
        $.fn.clearme.defaults, options);
        var $this = $(this);
        $this.data('opts', opts);
        return this.each(function (i, e) {
            var $t = jQuery(this);
	    jQuery(e).unbind('click.clearme');
            jQuery(e).bind('click.clearme', function (event) {
		if($t.is('input')){
			    $(this).val("");
			}else{
			    $(this).text("");			    
			}
		
	    });
	})
}
//defaults
jQuery.fn.clearme.defaults = {
        showLabel: 'show',
        hideLabel: 'hide',
        onShow: function () {},
        onHide: function () {}
    };
    //private part
    
})(jQuery);
