如何从Shumornote文本编辑器中获取输入值
// html代码 //< div id =“ txtDescription” class =“ summernote datarequired” // title =“ Description reuired”>
//获取数据的jQuery代码 我使用$('#txtDescription')。val()访问值但没有获得。
//html code
//<div id="txtDescription" class="summernote datarequired" //title="Description Reuired">
// jquery code for get data
i use $('#txtDescription').val() to access value But not getting.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我认为您需要
$(“#txtDescription”)。code()
或$(“#txtDescription”)。summernote('code')
这两个都可能有所帮助您解决了问题。请参阅在这里
以获取更多信息。
I think you need to
$("#txtDescription").code()
or$("#txtDescription").summernote('code')
either of this might help you solve your problem.please refer Here
for further info.
div元素没有价值。输入元素具有它。
如果Div,您可能会使用
或
div elements don't have value. input elements have it.
In case of div you might use
or
在加载页面或在Onload事件中,请记住使用此功能。
Remember to use this when the page is loaded, or in an onload event.