Skip to content

Instantly share code, notes, and snippets.

@collin
Forked from nex3/gist:3262
Created July 31, 2008 00:24
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save collin/3363 to your computer and use it in GitHub Desktop.
$.password
:blur
if @value === ""
.hide()
// Eventually, indenting beneath something will set it as the context
.prev()
.show().val(@default_value)
.blur()
$.faux-password
:focus
.hide().next().show().focus()
Ah, I had not noticed implied dot access works anywhere.
"any indentation creating a context" looks marvelous
Thanks!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment