Skip to content

barebones edit-in-place behavior on input text fields with jQuery (test-driven)

Notifications You must be signed in to change notification settings

ragaskar/flipfields

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

flipFields

FlipFields is a fully-tested jQuery plugin for minimal edit-in-place behavior.

No AJAX behavior, nothing you don't need.

usage:

$('input').flipFields();

Clicking on a span tag will show the input; blurring or hitting enter will hide the input and update the span. Hitting ESC while in an input will cancel any changes made to an input. Input values should be text-only (Behavior with HTML-encoded input is untested).

flipFields takes an options hash. Currently the only option is spanClass, the value of which is added as a class to the generated spans.

example:

$('input').flipFields({spanClass: 'someClassName'});

About

barebones edit-in-place behavior on input text fields with jQuery (test-driven)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published