Hi All,
I am creating few textareas on-the-fly by replacing the content and adding that content in textarea. Please review the code below:
<script type="text/javascript" language="javascript">
$(document).ready(function(){
$("#content").find(".editable").each(function(count){
var content = $(this).html();
$(this).html("");
var txtArea = document.createElement('textarea');
txtArea.setAttribute('cols', '80');
txtArea.setAttribute('name', "content[]");
txtArea.setAttribute('rows', '10');
txtArea.innerHTML(content);
this.appendChild(txtArea);
})
});
</script>
Now when I post this form to a php page I don't get values of textareas that were created in the POST array
Please provide guidance and do let me know if I can do any thing to make my question more clear...
Thanks