textarea不显示IE,但正在提交
我在jQuery和javascript中具有以下创建表单元素的功能:
createEmail: function(title){
var $emailForm = $(\'<form>\',{action: \'sendEmail.php\', id: \'emailForm\'});
var $table = $(\'<table>\');
$emailForm.append($table);
var $tr = $(\'<tr>\');
$tr.append($(\'<td>\',{text: \'Email From:\'}));
$tr.append($(\'<td>\',{html: \'<input type=\"text\" value=\"\" name=\"from\"/>\'}));
$table.append($tr);
$tr = $(\'<tr>\');
$tr.append($(\'<td>\',{text: \'Email To:\'}));
$tr.append($(\'<td>\',{html: \'<input type=\"text\" value=\"\" name=\"to\"/>\'}));
$table.append($tr);
$tr = $(\'<tr>\');
$tr.append($(\'<td>\',{text: \'Message Body:\'}));
$tr.append($(\'<textArea>\',{name: \'msg\', cols: 50, rows: 10,
text: \'Attached is the \' +title+ \' license key file.\\nPlease place the file in the same directory as the \"check_license.php\" file for \' +title+ \' \'}));
$table.append($tr);
$tr.append(\'<input type=\"hidden\" value=\"\'+title+\'\" name=\"title\"/>\');
var $div = $(\'<div>\').append($emailForm).dialog({
title: \'Email \' + title + \' File\',
width: 600,
modal: true,
buttons: {
cancel: function(){
$(this).dialog(\'close\');
},
send: function(){
$.post($emailForm.attr(\'action\'), $emailForm.serialize(),function(data){
alert(data);
$div.dialog(\'close\');
})
}
},
beforeClose: function(){
$(this).remove();
}
});
$div.dialog(\'widget\').css(\'margin\',\'0 auto\');
}
由于某些原因,在IE中,文本区域没有显示出来,单击该对话框时如下所示:
但是在chrome和FF中看起来很正常:
为什么会这样呢?文本区域仍然被提交到我的php,好像里面有东西(当我在IE8中使用开发工具时,它说里面有内容)
那么,为什么在IE中不显示可编辑的文本区域?
谢谢....
没有找到相关结果
已邀请:
2 个回复
襄挟款籍
破弯
,请尝试
。