Created
August 31, 2009 05:19
-
-
Save nickretallack/178299 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
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