Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<!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
You can’t perform that action at this time.