Created
July 30, 2008 19:32
-
-
Save anonymous/3308 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Convert to jQuery please... | |
var field = $('password_confirmation_field'); | |
field.hide(); | |
$('user_password').observe('focus', field.show.bind(field)); | |
// This the best? | |
var confirmation = $('#password_confirmation_field').hide(); | |
$('#user_password').focus(function () { | |
confirmation.show(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment