JavaScript从JSON或类似数据生成/呈现动态HTML表单? [英] JavaScript to generate/render dynamic HTML form from JSON or similar data?
本文介绍了JavaScript从JSON或类似数据生成/呈现动态HTML表单?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想为观众提供一个根据用户输入进行修改的联系表单。这种表单的一个例子是 Ext JS网站。
我没有看过这个产品,但是我想知道是否有任何其他程序/函数动态生成这样的表单?
I would like to offer viewers a contact form that is modified according to the user's input. An example of such a form is on the Ext JS site. I have not looked into the product, but I would like to know if there are any other programs/functions that generate such a form dynamically? I found only samples on adding other input elements to existing forms.
推荐答案
以下是一些其他实现:
- http://neyeon.com/ p / jquery.dform / (取决于jQuery)
- http://neyric.github.com/inputex/ (取决于YUI)
- http://robla.net/jsonwidget/
- http://neyeon.com/p/jquery.dform/ (depends on jQuery)
- http://neyric.github.com/inputex/ (depends on YUI)
- http://robla.net/jsonwidget/
我还计划将此功能添加到我的自己的js-forms库,它也会处理验证。
I also plan to add this functionality to my own js-forms library, which would also handle validation.
这篇关于JavaScript从JSON或类似数据生成/呈现动态HTML表单?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文