diff --git a/demos/websocket/static/chat.js b/demos/websocket/static/chat.js
index b4bb18a9..4e7ec049 100644
--- a/demos/websocket/static/chat.js
+++ b/demos/websocket/static/chat.js
@@ -16,11 +16,11 @@ $(document).ready(function() {
if (!window.console) window.console = {};
if (!window.console.log) window.console.log = function() {};
- $("#messageform").live("submit", function() {
+ $("#messageform").on("submit", function() {
newMessage($(this));
return false;
});
- $("#messageform").live("keypress", function(e) {
+ $("#messageform").on("keypress", function(e) {
if (e.keyCode == 13) {
newMessage($(this));
return false;
diff --git a/demos/websocket/templates/index.html b/demos/websocket/templates/index.html
index cbf2b23d..91a45363 100644
--- a/demos/websocket/templates/index.html
+++ b/demos/websocket/templates/index.html
@@ -27,7 +27,7 @@
-
+