Aleksandr Dovbos
Aleksandr Dovbos
its because your scripts is below /body tag, put them above /body and everything will be just fine
just write $(document).ready(function () { $('form').submit(function(){ socket.emit('chat message', $('#m').val()); $('#m').val(''); return false; }); }) where we adding document ready function... now we can put script in head) hope helps)
I had similar problem on laptop. After switching drive from laptop to PC, found that it start working. I don't have a clue where is a problem, but for science...