JQuery implements form step flow navigation code sharing, jquery form

Source: Internet
Author: User

JQuery implements form step flow navigation code sharing, jquery form

This document describes how to use jQuery to navigate form steps. Share it with you for your reference. The details are as follows:
The jQuery form step flow navigation is a multi-step progress. Multiple submissions are implemented to enter the form submission information code step by step. Each time the information is filled in, the system will remind you whether to submit the information, if you want to modify the information again, you can also perform a return operation. The page effect is concise and elegant, and the combination of red and black is classic. It is a very practical special effect Code and is worth learning.
Run: ------------------- view the download result source code -------------------

TIPS: If the browser cannot run properly, you can try to switch the browsing mode.
The pop-up login and full-screen registration Special Effects code of jquery implementation we share with you is as follows:

<Head> <meta http-equiv = "Content-Type" content = "text/html; charset = UTF-8 "/> <title> jQuery form step flow navigation </title> <script type =" text/javascript "src =" js/jquery. js "> </script> <script type =" text/javascript "> function one () {if (confirm (" are you sure you want to submit? ") {$ (" # One "). hide (); $ ("# two "). show (); $ ("# grxx "). attr ("class", "current_prev"); $ ("# zjxx "). attr ("class", "current") ;}} function two () {if (confirm ("are you sure you want to submit? ") {$ (" # Two "). hide (); $ ("# three "). show (); $ ("# grxx "). attr ("class", "done"); $ ("# zjxx "). attr ("class", "current_prev"); $ ("# qzxx "). attr ("class", "current") ;}} function three () {if (confirm ("are you sure you want to submit? ") {$ (" # Three "). hide (); $ ("# four "). show (); $ ("# grxx "). attr ("class", "done"); $ ("# zjxx "). attr ("class", "done"); $ ("# qzxx "). attr ("class", "current_prev"); $ ("# qzfs "). attr ("class", "current") ;}} function reone () {if (confirm ("are you sure you want to return? ") {$ (" # One "). show (); $ ("# two "). hide (); $ ("# grxx "). attr ("class", "current"); $ ("# zjxx "). attr ("class", "") ;}} function retwo () {if (confirm ("are you sure you want to return? ") {$ (" # Three "). hide (); $ ("# two "). show (); $ ("# grxx "). attr ("class", "current_prev"); $ ("# zjxx "). attr ("class", "current"); $ ("# qzxx "). attr ("class", "") ;}} function rethree () {if (confirm ("are you sure you want to return? ") {$ (" # Four "). hide (); $ ("# three "). show (); $ ("# grxx "). attr ("class", "done"); $ ("# zjxx "). attr ("class", "current_prev"); $ ("# qzxx "). attr ("class", "current"); $ ("# qzfs "). attr ("class", "last") ;}</script> <style type = "text/css"> * {margin: 0; padding: 0; list-style-type: none;} a, img {border: 0;} body {font: 12px/180% Arial, Helvetica, sans-serif, "";}. formbox {width: 488px; margin: 40px auto ;}. formcon {padding: 10px 0; border: solid 1px # ddd }. formcon table input {width: 200px ;}. formcon table td {padding: 5px; line-height: 24px;}/* flow_steps */. flow_steps {height: 23px; overflow: hidden ;}. flow_steps li {float: left; height: 23px; padding: 0 40px 0 30px; line-height: 23px; text-align: center; background: url (img/barbg.png) no-repeat 100% 0 # E4E4E4; font-weight: bold ;}. flow_steps li. done {background-position: 100%-46px; background-color: # FFEDA2 ;}. flow_steps li. current_prev {background-position: 100%-23px; background-color: # FFEDA2 ;}. flow_steps li. current {color: # fff; background-color: # 990D1B ;}. flow_steps li # qzfs. current ,. flow_steps li. last {background-image: none ;} </style> 

The above is the jQuery implementation form step process navigation code for everyone, I hope you will like it.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.