Skip to content

Instantly share code, notes, and snippets.

@stevenchan
Created January 22, 2010 08:39
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 stevenchan/283626 to your computer and use it in GitHub Desktop.
Save stevenchan/283626 to your computer and use it in GitHub Desktop.
$("#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