Created
January 22, 2010 08:39
-
-
Save stevenchan/283626 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
$("#msg_form").ajaxForm(function(){ | |
//clear the message input field after sending a message | |
$("#msg_form input[name='message']").attr("value", ""); | |
//focus to the message input field again | |
$("#msg_form input[name='message']").focus(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment