Skip to content

Instantly share code, notes, and snippets.

@jfirebaugh
Created February 2, 2011 01:31
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 jfirebaugh/807090 to your computer and use it in GitHub Desktop.
Save jfirebaugh/807090 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.5.js"></script>
<script type="text/javascript">
$('button').live('click', function () {
$.ajax({url: '/', error: function() { alert('error!'); }});
return false;
})
</script>
</head>
<body>
<form>
<button>Click Me</button>
</form>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment