dcneiner/In-Field-Labels-jQuery-Plugin — Issue #24: For textarea that has something in, it's good to trim the whitespace
Author: tpisto
Created: 2012-02-26 12:10:37+00:00
State: open

Look below the // Strip pure whitespace comment

base.init = function () {
// Merge supplied options with default options
base.options = $.extend({}, $.InFieldLabels.defaultOptions, options);

// Strip pure whitespace
base.$field.val(jQuery.trim(base.$field.val()));

// Check if the field is already filled in
if (base.$field.val() !== "") {
base.$label.hide();
base.showing = false;
}