allow for setting an input element's placeholder to ''

This commit is contained in:
rlx 2011-11-10 10:02:04 +00:00
parent 08919e7b37
commit 369c52d4d1

View file

@ -788,6 +788,12 @@ Ox.Input = function(options, self) {
.val(self.options.value)
}
}
} else {
if (self.options.value === '') {
self.$input
.removeClass('OxPlaceholder')
.val('');
}
}
}