/**
 * Clears an input on click, and then replaces default value back again if it wasn't updated from default
 *
 * V0.2 - LR
*/
$.fn.quickClear = function() {
	
	var selectedElements = $(this);
	
	// Input click removals
	selectedElements.bind("focus blur",function(e) {
		// Blur
		if(($(this).val() == "") && e.type == "blur") {
			$(this).val($(this).data('placeholder'));
		}
		// Focus
		if($(this).val() == $(this).data('placeholder') && e.type == "focus") {
			$(this).val('');
		}
	});		
	
	selectedElements.each(function(){
		// HINT: Use the 'placeholder' attribute to specify a custom default..!		
		$(this).data('placeholder', $(this).attr('placeholder') || $(this).val());
	});	
	
	return selectedElements;

}
