jQuery的序列化()留下了textarea [英] jQuery serialize() leaves out textarea
本文介绍了jQuery的序列化()留下了textarea的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我使用jQuery的serialize()方法提交表单时,除了表单中的textarea之外,所有内容都会被提交。这是一个常见问题吗?我无法弄清楚。
< textarea form =new_note_formid =note_text除了textarea保持未定义外, name =note_textrequired =required>< / textarea>
解决方案
直到你将 name
属性添加到textarea。
< apex:outputText value ={!sLifeStyle3Content}/>
< / textarea>
When I submit a form using jQuery's serialize() method, everything gets submitted except the textarea in the form. Is this a common issue? I can't figure it out. The form works except for just the textarea which stays undefined???
<textarea form="new_note_form" id="note_text" name="note_text" required="required"></textarea>
解决方案
It does not work until you add name
attribute to the textarea.
<textarea id="sLifeStyle3Content" name="sLifeStyle3Content" placeholder="HTML is allowed">
<apex:outputText value="{!sLifeStyle3Content}" />
</textarea>
这篇关于jQuery的序列化()留下了textarea的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文