code: function select(word) {	
  		var input = this;
  		var value = input.val();
  		if (word) {
  			input.val(
  				value
  				+ word.substr(value.split(/ |\n/).pop().length)
  			);
  			
  			// Select hint.
  			input[0].selectionStart = value.length;
  		}
  	}
docs: Hint by selecting part of the suggested word.