barebones edit-in-place behavior on input text fields with jQuery (test-driven)
Switch branches/tags
Nothing to show
Pull request Compare This branch is 6 commits ahead of ragaskar:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
example First version Mar 20, 2010
lib Edited lib/jquery.flip_fields.js via GitHub Apr 10, 2011
spec/javascripts First version Mar 20, 2010
.gitignore First version Mar 20, 2010
MIT.LICENSE First version Mar 20, 2010
README.markdown Rename README to README.markdown Mar 20, 2010
Rakefile First version Mar 20, 2010



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

No AJAX behavior, nothing you don't need.



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.


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