allow for setting an input element's placeholder to ''
This commit is contained in:
parent
08919e7b37
commit
369c52d4d1
1 changed files with 6 additions and 0 deletions
|
@ -788,6 +788,12 @@ Ox.Input = function(options, self) {
|
|||
.val(self.options.value)
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if (self.options.value === '') {
|
||||
self.$input
|
||||
.removeClass('OxPlaceholder')
|
||||
.val('');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue