jQuery将表单分解成步骤 [英] jQuery Break form into steps

查看:165
本文介绍了jQuery将表单分解成步骤的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个小小的jQuery脚本,用户可以创建和附加表单字段来创建表单。我添加了一个功能,用户可以在表单中的任何位置添加分页符,以便表单可以拆分成多个部分。因此,第一部分显示字段,直到它检测到分页符,然后用户单击下一个字段,第二个字段将显示,直到分页符等。我想我可以使用< hr /> 来打破页面,因此每一组字段都会显示,直到< hr /> break。

这个想法有点含糊。你会如何处理这个问题?

解决方案

有一些插件可以做到这一点。我已成功使用 http://thecodemine.org/ 。有很多插件可以做到这一点,只需要Google jQuery表单向导即可。


I have a little jQuery script where a user is able to create and append form fields to create a form. I'm adding a feature where a user can add page break anywhere in the form so that the form can split into parts. So first part shows the fields until it detects page break, then user clicks on next, and the second set of fields will show until page break and so on. I was thinking i could break the pages using <hr/> so each set of fields will show until the <hr/> break.

The idea is a little vague. How would you approach this?

解决方案

There are some plugins that do this. I have used http://thecodemine.org/ with success. There are a lot of plugins to do this, just Google jQuery form wizard.

这篇关于jQuery将表单分解成步骤的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆