Quick Introduction
jQuery Steps is a smart UI component which allows you to easily create wizard-like interfaces. This plugin groups content into sections for a more structured and orderly page view. Furthermore, it is as simple as 1-2-3 to add plugins such as jQuery Validation which can prevent step changing or submission. Check out the demos and get a first-hand impression!
Features
- Accessability support
- Make it visible for everyone without extra work - just use it.
- Async content loading
- Load your content asynchronously via AJAX by calling e.g. a REST service.
- Cool transition effects
- Beautiful & sleek transition effects complete the offer.
- Dynamic Manipulation
- Add or remove steps dynamically via API.
- Easy Navigation
- Navigate in various different way using the keyboard, steps or pager - it is up to you.
- State Persistence
- Enable the
saveState
option - this will save your current step position of each individual wizard *.
- Form validation made easy
- Embed a validation plugin of your choice and customize it like you want - it is just that simple.
- Embedded iframe content
- Embed your content via an
iframe
- it feels like it would be a part of your site. - Keyboard navigation
- Use your keyboard to navigate through your content.
- Multiple wizards
- Have multiple wizards on one page or even have nested wizards like you want.
- Vertical Navigation
- Switch to vertical navigation if you need.
- And much more ...
- Take a look to the examples and learn more about it.
* The step position will be saved into a cookie after a step change, add or remove. After a refresh the latest active step becomes active again.
Buy me a beer
Hey guys, I invested tons of time and still investing to offer you a great feeling and nice looking component. So if you like it, I would very appreciate a beer donation ;-) Thanks.
Download
jQuery Steps is an open-source project hosted on GitHub and can be therefore downloaded in many different ways. The easiest and fastest way to get started is to download the compiled & minified version.
Source Code
Contains the original source files. By using the grunt api
command the API
documentation will be automatically built.
Packages
jQuery Steps is also available on the following package managers.
NuGet
The package manager for the Microsoft development platform including .Net. You find the package on NuGet site here. To install the package see the following command line example.
PM> Install-Package jQuery.Steps
Bower
A package maneger for the web. To install the package see the following command line example.
$ bower install jquery.steps
Basic Example
The simplest template to get started is the following.
Everything you need to start is:
- Include jQuery and jQuery Steps in your HTML code.
- Then select an element represents the wizard and call the
steps
method.
<!DOCTYPE html> <html> <head> <title>Demo</title> <meta charset="utf-8"> <script src="jquery.js"></script> <script src="jquery.steps.js"></script> </head> <body> <script> $("#wizard").steps(); </script> <div id="wizard"></div> </body> </html>
How to add initial steps?
There are two ways to add steps and their corresponding content.
1. Add HTML code into the representing wizard element.
<div id="wizard"> <h1>First Step</h1> <div>First Content</div> <h1>Second Step</h1> <div>Second Content</div> </div>
2. Or use the API to add steps dynamically.
// Initialize wizard var wizard = $("#wizard").steps(); // Add step wizard.steps("add", { title: "HTML code", content: "<strong>HTML code</strong>" });
Documentation
There are two ways to get the documentation but the recommended way is to use the wiki site.
- Visit the project specific GitHub wiki or
- download the source code and use the
grunt api
command.
Info: The documentation is currently maintained via the GitHub wiki but will be moved to jquery-steps.com later this year.