Giter VIP home page Giter VIP logo

jformslider's Introduction

jFormslider v1.1.0

jFormslider v1.1.0 is a jquery pluggin where we can convert a big form in to a slider Form should be in ul li format

Website Demo Docs

<div id="slider">
	<ul>
		<li>--form componants--</li>
		<li>--form componants--</li>
		<li>--form componants--</li>
	</ul>
</div>

Usage

//default options
options={
var options={
            width:600,
            height:300,
            movement:'horizontal',
            next_button:true,
            prev_button:true,
            button_placement:'bottom',
            submit_button:true,
            submit_class:'',
            next_class:'',
            prev_class:'',
            error_class:'error',
            input_error_class:'',
            error_element:'p',
            texts:{
                    next:'next',
                    prev:'prev',
                    submit:'submit'
                  },
            speed:400,
            submit_handler:function(){},
            slide_on_url:false,
			slide_effect:true,
			responsive_widths:[
				{range:[0,360],width:"30%"},
				{range:[361,640],width:"50%"},
				{range:[641,767],width:"65%"},
				{range:[768,991],width:"75%"},
				{range:[992,1199],width:"100%"}
			]
        }	
	$('#slider').jFormslider(options);//usage

Features

Little validations##

if you want to validate a input or select element put attribute 'required' and to overide default message put attribute 'data-msg'


ex:<input type="text" name="username" required data-msg="Please enter username"/>

if you want to validate email put attribute 'email'

#!html

ex:<input type="text" name="email" required data-msg="Please enter a valid email "/>

Call before

Before sliding to next slide you can call a function For this just put attribute

data-callbefore="some_function()" 

in li Before loading this li it will call this function function should return true if you want to slide to this li function should return false if you dont want to slide to this li

Goto slide

If you want to goto particular li without clicking through all slides you can call

$('#slider').gotoSlide(data-id)

you should specify a attribute in li called 'data-id' for this


<li data-id="middle_page"></li>
$('#slider').gotoSlide('middle_page')

For more options and docs visit jformslider.com

Please report bugs to [email protected]

jformslider's People

Contributors

harishuw avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.