Skip to content

Instantly share code, notes, and snippets.

@nickretallack
Created August 31, 2009 05:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nickretallack/178299 to your computer and use it in GitHub Desktop.
Save nickretallack/178299 to your computer and use it in GitHub Desktop.
function grow_field(field){
var field = $(field)
setTimeout(function(){
var temp_field
if (field.hasClass('.note')) temp_field = $('.autogrow .note' )
else temp_field = $('.autogrow .title')
temp_field.text(field.val() + " MM")
field.css('height', temp_field.height())
})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment