Skip to content

Instantly share code, notes, and snippets.

@rthbound
Created December 6, 2011 19:21
Show Gist options
  • Select an option

  • Save rthbound/1439532 to your computer and use it in GitHub Desktop.

Select an option

Save rthbound/1439532 to your computer and use it in GitHub Desktop.
stuff to do
$(document).ready(function() {
var options = {
target: '#div_effect',
type: 'post',
};
$("#post_comment_button").click(function() {
$('#new-comment-form').submit(function() {
// please don't redirect me
// instead inject my new comment into the list
// and clear the damned text
$(this).ajaxSubmit(options);
return false;
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment