Esta es la funcion que trae el textarea:
Código:
Muchas gracias de antemano <script> // Declare the form field count javascript variable so you know how many the user have added. //The CGI.REQUEST_METHOD bit is the CF code for setting this variable back to the count where it was last up to. var tFormFieldCount = 1; var tFormFieldList = ""; // Function to dynamically insert the form field to the cell below. If you want textareas or other form elements, just create another function and change the html insert text below. function MakeOne(FieldType) { // Depending on what type of form fields the user choose then dynamically write the appropriate form element to the page if (FieldType == 'TextInput') { document.getElementById('DynamicContent').innerHTML += 'Noticia ' + tFormFieldCount + '-<input type="text" name="titulo[]" value="titulo" size="60" maxlength="100" /><br /><br /><input type="text" name="subtitulo[]" value="subtitulo" size="60" maxlength="200" /><br /><br /> <textarea style="width: 80%;" cols="80" rows="15" name="elm1" id="elm1">Escriba la noticia aqui </textarea><div><br /></div><br /><div id="pregunta">¿Desea Agregar audio?</div><div id="archi"><input name="archivo" type="file" id="archivo"></div><input type="submit" value="Vista Previa" name="vistaprev" id="prev"/>'; } else if (FieldType == 'Textarea') { document.getElementById('DynamicContent').innerHTML += 'Form Element ' + tFormFieldCount + '- Textarea <textarea name="Textarea' + tFormFieldCount + '" cols=30 rows=3></textarea><br>'; } // Populate the form element list. if (tFormFieldList == "") { tFormFieldList = FieldType; } else { tFormFieldList += "," + FieldType; } document.forms[0].FormFieldCount.value = tFormFieldCount; document.forms[0].FormFieldList.value = tFormFieldList; tFormFieldCount++; } // Just a function to check if the user have added any text input fields. function CheckIt() { if (tFormFieldCount == 1) { alert('You must add at least one text input field.'); return false; } return true; } </script>