diff --git a/public/assets/form/form.js b/public/assets/form/form.js index fa21bed91..c39da9cbf 100644 --- a/public/assets/form/form.js +++ b/public/assets/form/form.js @@ -73,6 +73,7 @@ $(function() { name: 'name', tag: 'input', type: 'text', + value: '', placeholder: 'Your Name', }, { @@ -80,6 +81,7 @@ $(function() { name: 'email', tag: 'input', type: 'email', + value: '', placeholder: 'Your Email', }, { @@ -87,6 +89,7 @@ $(function() { name: 'body', tag: 'textarea', placeholder: 'Your Message...', + value: '', rows: 7, }, ], @@ -361,12 +364,13 @@ $(function() { } $.each(this.options.attributes, function(index, value) { var item = $('
') + var _defaultValue = (typeof value.value === 'function') ? value.value() : value.value; for (var i=0; i < (value.repeat ? value.repeat : 1); i++) { if (value.tag == 'input') { - item.append('') + item.append('') } else if (value.tag == 'textarea') { - item.append('') + item.append('') } } $form.append(item)