From 369c52d4d149dbe521f25f3bf240728d4a1f6f32 Mon Sep 17 00:00:00 2001 From: rlx <0x0073@0x2620.org> Date: Thu, 10 Nov 2011 10:02:04 +0000 Subject: [PATCH] allow for setting an input element's placeholder to '' --- source/Ox.UI/js/Form/Ox.Input.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/source/Ox.UI/js/Form/Ox.Input.js b/source/Ox.UI/js/Form/Ox.Input.js index f18db9c4..b2c1a620 100644 --- a/source/Ox.UI/js/Form/Ox.Input.js +++ b/source/Ox.UI/js/Form/Ox.Input.js @@ -788,6 +788,12 @@ Ox.Input = function(options, self) { .val(self.options.value) } } + } else { + if (self.options.value === '') { + self.$input + .removeClass('OxPlaceholder') + .val(''); + } } }