pixelnode/public/send.js

9 lines
158 B
JavaScript
Raw Normal View History

2018-04-03 12:48:19 +02:00
$(function () {
var socket = io();
$('form').submit(function(){
socket.emit('input', $('#m').val());
$('#m').val('');
return false;
});
});