I have a textarea in a form that will eventually be an email form. Using Jquery I have loaded a signature file and want to display it in the text area. I have the file but using .html displays nothing and using val(data) produces the code on my box . Can anyone offer any help please
function loadedData(data) {
$('#mail_body').val(data)
}
$.get('../signature/sig1.htm', loadedData);
You cannot put html in a textarea. But you can parse it with jQuery before putting it there.
Or you should use some wysiwyg to add HTML capabilities to your edit box:
http://ckeditor.com/
http://tinymce.moxiecode.com/