I have a data entry form broken into multiple steps. Each step is on its own div. When filling out the form, I would like to have a nice transition between each step where the current step/div fades out, the height of the form is adjusted to the correct height for the next step/div and then the new step/div fades in.

This would work something like "Lightbox" but would not be in a modal popup.

Also similar to this Sliding Form but there will only be "Next" and "Previous" buttons on the bottom and not a tab for each step.

Does a JavaScript library like this already exist, or is my best option to set each div to style="display: none;" and combine .slideDown() and .fadeIn()?

有帮助吗?

解决方案

If you want with Next and Previous buttons here is very good demo.

And Here is the link of GitHub for above jquery plugin

其他提示

I have used jQuery Steps with a lot of success

It is extremely polished, provides validation per step, and it very customizable.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top