client/js/libs/jquery/tabcomplete.js
function placeholder(word) {
		var input = this;
		var clone = input.prev(".hint");
		
		input.css({
			backgroundColor: "transparent",
			position: "relative",
		});
		
		// Lets create a clone of the input if it does
		// not already exist.
		if (!clone.length) {
			input.wrap(
				$("<div>").css({position: "relative", height: input.css("height")})
			);
			clone = input
				.clone()
				.attr("tabindex", -1)
				.removeAttr("id name placeholder")
				.addClass("hint")
				.insertBefore(input);
			clone.css({
				position: "absolute",
			});
		}
		
		var hint = "";
		if (typeof word !== "undefined") {
			var value = input.val();
			hint = value + word.substr(value.split(/ |\n/).pop().length);
		}
		
		clone.val(hint);
	}
function placeholder(word) {
		var input = this;
		var clone = input.prev(".hint");
		
		input.css({
			backgroundColor: "transparent",
			position: "relative",
		});
		
		// Lets create a clone of the input if it does
		// not already exist.
		if (!clone.length) {
			input.wrap(
				$("<div>").css({position: "relative", height: input.css("height")})
			);
			clone = input
				.clone()
				.attr("tabindex", -1)
				.removeAttr("id name placeholder")
				.addClass("hint")
				.insertBefore(input);
			clone.css({
				position: "absolute",
			});
		}
		
		var hint = "";
		if (typeof word !== "undefined") {
			var value = input.val();
			hint = value + word.substr(value.split(/ |\n/).pop().length);
		}
		
		clone.val(hint);
	}
function placeholder ( word ) { var input = this ; var clone = input . prev ( ".hint" ) ; input . css ( { backgroundColor : "transparent" , position : "relative" , } ) ; // Lets create a clone of the input if it does // not already exist. if ( ! clone . length ) { input . wrap ( $ ( "<div>" ) . css ( { position : "relative" , height : input . css ( "height" ) } ) ) ; clone = input . clone ( ) . attr ( "tabindex" , - 1 ) . removeAttr ( "id name placeholder" ) . addClass ( "hint" ) . insertBefore ( input ) ; clone . css ( { position : "absolute" , } ) ; } var hint = "" ; if ( typeof word !== "undefined" ) { var value = input . val ( ) ; hint = value + word . substr ( value . split ( /  |\n / ) . pop ( ) . length ) ; } clone . val ( hint ) ; }
Show placeholder text. This works by creating a copy of the input and placing it behind the real input.
Show placeholder text . This works by creating a copy of the input and placing it behind the real input .