日期:2014-05-17  浏览次数:20435 次

Jquery动态添加第三空间freetextbox不能显示?
我想问一下。我的代码是这样的,单击某个按钮时触发事件:事件里的内容就是动态的加载一个freetextbox。
可是运行发现显示不出来:
var EducationInsert = $("<div><FTB:FreeTextBox Width='600px' ID='FreeTextBox1' runat='server'" +"Language='zhCN'" + "ToolbarLayout='ParagraphMenu,FontFacesMenu,FontSizesMenu,FontForeColorsMenu,FontForeColorPicker,FontBackColorsMenu,FontBackColorPicker|Bold,Italic,Underline,Strikethrough,Superscript,Subscript,RemoveFormat|JustifyLeft,JustifyRight,JustifyCenter,JustifyFull;BulletedList,NumberedList,Indent,Outdent;CreateLink,Unlink,InsertImage|Cut,Copy,Paste,Delete;Undo,Redo,Print,StylesMenu,InsertHtmlMenu|InsertRule,InsertDate,InsertTime|InsertTable,EditTable;InsertTableRowAfter,InsertTableRowBefore,DeleteTableRow;InsertTableColumnAfter,InsertTableColumnBefore,DeleteTableColumn|InsertForm,InsertTextBox,InsertTextArea,InsertRadioButton,InsertCheckBox,InsertDropDownList,InsertButton|InsertDiv,EditStyle,InsertImageFromGallery,Preview,SelectAll,WordClean,NetSpell'"
  + "ImageGalleryPath='Image'></FTB:FreeTextBox>
<div>")
就是这样的可是freetextbox编辑框显示不出来。如果不用jquery动态添加而是直接在页面上写就可以显示。想问一下这是什么原因。