diff --git a/source/Ox.UI/js/Form/Ox.FormItem.js b/source/Ox.UI/js/Form/Ox.FormItem.js index 2ac129e8..7df18920 100644 --- a/source/Ox.UI/js/Form/Ox.FormItem.js +++ b/source/Ox.UI/js/Form/Ox.FormItem.js @@ -22,9 +22,16 @@ Ox.FormItem = function(options, self) { error: '', }) .options(options || {}) - .addClass('OxFormItem') - .append(self.options.element); + .addClass('OxFormItem'); + self.description = self.options.element.options('description'); + if (self.description) { + $('
') + .addClass('OxFormDescription') + .html(self.description) + .appendTo(that); + } + that.append(self.options.element); self.$message = Ox.Element() .addClass('OxFormMessage') .appendTo(that);