我试图用bootstrap 3 parsley 2.2.0-rc4 http://jsfiddle.net/bwolfsohn/9wfjo94w/14/在jsfiddle中复制示例bootstrap / parsley表单
表单弹出消息:是的,一切似乎都正常。.然后出现以下错误:
{"error": "Shell form does not validate{'html_initial_name': u'initial-js_lib', 'form': <mooshell.forms.ShellForm object at 0x2971b90>, 'html_name': 'js_lib', 'html_initial_id': u'initial-id_js_lib', 'label': u'Js lib', 'field': <django.forms.models.ModelChoiceField object at 0x2997bd0>, 'help_text': '', 'name': 'js_lib'}{'html_initial_name': u'initial-js_wrap', 'form': <mooshell.forms.ShellForm object at 0x2971b90>, 'html_name': 'js_wrap', 'html_initial_id': u'initial-id_js_wrap', 'label': u'Js wrap', 'field': <django.forms.fields.TypedChoiceField object at 0x29974d0>, 'help_text': '', 'name': 'js_wrap'}"}
OK ..这看起来像是jsfiddle问题...我手动加载了该代码,并在Codepen上运行了它,没有问题...
http://codepen.io/bwolfsohn/pen/dGbePr
You've just POSTed to a Pen.
Values Posted
fullname brian wolfsohn
email [email protected]
gender M
message
Values as JSON
{"fullname":"brian wolfsohn","email":"[email protected]","gender":"M","message":""}
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句