Skip to content

Instantly share code, notes, and snippets.

@patmaddox
Created February 25, 2009 03:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save patmaddox/69979 to your computer and use it in GitHub Desktop.
Save patmaddox/69979 to your computer and use it in GitHub Desktop.
var new_user_form = jQuery('#new_user_form form');
new_user_form.fn({
transitionToEntry: function() {
jQuery(this).removeClass('captcha').addClass('entry');
jQuery(this).submit(function() {
jQuery(this).fn('transitionToCaptcha');
return false;
});
},
transitionToCaptcha: function() {
jQuery(this).removeClass('entry').addClass('captcha');
jQuery(this).unbind('submit');
}
});
new_user_form.fn('transitionToEntry');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment