Skip to content

Uhkis/floatforms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 

Repository files navigation

floatforms

floatforms is a jQuery plugin to make long forms a bit nicer to fill out. Currently only works for <input> elements.

Demo and more at the homepage

Usage

Link the js (and optionally css) file(s) to your page:

<script src="js/floatforms.js"></script>
<link rel="stylesheet" href="css/floatforms.css">

Add an element as your floatbox, currently id must be floatbox id by default is floatbox, but selector can be changed via options.

<div id="floatbox"></div>

Run the floatforms function on your form: $('#yourform').floatforms(options);

Options

Options are passed as an object with key-value pairs.

Defaults:

var options = {
  animate: true,
  floatbox: '#floatbox',
  boxClass: 'floatbox',
};
key value
animate boolean to animate or not
floatbox string css selector for floatbox
boxClass string class name of floatbox

Issues/Suggestions

Create a GitHub issue

About

floatforms jQuery plugin

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors